webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Types | Public Member Functions | Protected Member Functions | List of all members
WebCore::CSSRule Class Referenceabstract

#include <CSSRule.h>

Inheritance diagram for WebCore::CSSRule:
WTF::RefCounted< CSSRule > WTF::RefCounted< CSSRule > WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase WebCore::CSSFontFaceRule WebCore::CSSFontFaceRule WebCore::CSSGroupingRule WebCore::CSSGroupingRule WebCore::CSSImportRule WebCore::CSSImportRule WebCore::CSSKeyframeRule WebCore::CSSKeyframesRule WebCore::CSSNamespaceRule WebCore::CSSNamespaceRule WebCore::CSSPageRule WebCore::CSSPageRule WebCore::CSSStyleRule WebCore::CSSStyleRule WebCore::CSSUnknownRule WebCore::CSSUnknownRule

Public Types

enum  Type {
  UNKNOWN_RULE, STYLE_RULE, CHARSET_RULE, IMPORT_RULE,
  MEDIA_RULE, FONT_FACE_RULE, PAGE_RULE, KEYFRAMES_RULE,
  KEYFRAME_RULE, NAMESPACE_RULE = 10, SUPPORTS_RULE = 12, UNKNOWN_RULE,
  STYLE_RULE, CHARSET_RULE, IMPORT_RULE, MEDIA_RULE,
  FONT_FACE_RULE, PAGE_RULE, KEYFRAMES_RULE, KEYFRAME_RULE,
  NAMESPACE_RULE = 10, SUPPORTS_RULE = 12
}
 
enum  DeprecatedType { WEBKIT_KEYFRAMES_RULE = 7, WEBKIT_KEYFRAME_RULE = 8, WEBKIT_KEYFRAMES_RULE = 7, WEBKIT_KEYFRAME_RULE = 8 }
 
enum  Type {
  UNKNOWN_RULE, STYLE_RULE, CHARSET_RULE, IMPORT_RULE,
  MEDIA_RULE, FONT_FACE_RULE, PAGE_RULE, KEYFRAMES_RULE,
  KEYFRAME_RULE, NAMESPACE_RULE = 10, SUPPORTS_RULE = 12, UNKNOWN_RULE,
  STYLE_RULE, CHARSET_RULE, IMPORT_RULE, MEDIA_RULE,
  FONT_FACE_RULE, PAGE_RULE, KEYFRAMES_RULE, KEYFRAME_RULE,
  NAMESPACE_RULE = 10, SUPPORTS_RULE = 12
}
 
enum  DeprecatedType { WEBKIT_KEYFRAMES_RULE = 7, WEBKIT_KEYFRAME_RULE = 8, WEBKIT_KEYFRAMES_RULE = 7, WEBKIT_KEYFRAME_RULE = 8 }
 

Public Member Functions

virtual ~CSSRule ()
 
virtual Type type () const =0
 
virtual String cssText () const =0
 
virtual void reattach (StyleRuleBase &)=0
 
void setParentStyleSheet (CSSStyleSheet *styleSheet)
 
void setParentRule (CSSRule *rule)
 
CSSStyleSheetparentStyleSheet () const
 
CSSRuleparentRule () const
 
WEBCORE_EXPORT ExceptionOr< voidsetCssText (const String &)
 
virtual ~CSSRule ()
 
virtual Type type () const =0
 
virtual String cssText () const =0
 
virtual void reattach (StyleRuleBase &)=0
 
void setParentStyleSheet (CSSStyleSheet *styleSheet)
 
void setParentRule (CSSRule *rule)
 
CSSStyleSheetparentStyleSheet () const
 
CSSRuleparentRule () const
 
WEBCORE_EXPORT ExceptionOr< voidsetCssText (const String &)
 
- Public Member Functions inherited from WTF::RefCounted< CSSRule >
void deref () const
 
void deref () const
 
void deref () const
 
- Public Member Functions inherited from WTF::RefCountedBase
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 

Protected Member Functions

 CSSRule (CSSStyleSheet *parent)
 
bool hasCachedSelectorText () const
 
void setHasCachedSelectorText (bool hasCachedSelectorText) const
 
const CSSParserContextparserContext () const
 
 CSSRule (CSSStyleSheet *parent)
 
bool hasCachedSelectorText () const
 
void setHasCachedSelectorText (bool hasCachedSelectorText) const
 
const CSSParserContextparserContext () const
 
- Protected Member Functions inherited from WTF::RefCounted< CSSRule >
 RefCounted ()
 
 RefCounted ()
 
 RefCounted ()
 
 ~RefCounted ()
 
 ~RefCounted ()
 
 ~RefCounted ()
 
- Protected Member Functions inherited from WTF::RefCountedBase
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 

Member Enumeration Documentation

◆ DeprecatedType [1/2]

Enumerator
WEBKIT_KEYFRAMES_RULE 
WEBKIT_KEYFRAME_RULE 
WEBKIT_KEYFRAMES_RULE 
WEBKIT_KEYFRAME_RULE 

◆ DeprecatedType [2/2]

Enumerator
WEBKIT_KEYFRAMES_RULE 
WEBKIT_KEYFRAME_RULE 
WEBKIT_KEYFRAMES_RULE 
WEBKIT_KEYFRAME_RULE 

◆ Type [1/2]

Enumerator
UNKNOWN_RULE 
STYLE_RULE 
CHARSET_RULE 
IMPORT_RULE 
MEDIA_RULE 
FONT_FACE_RULE 
PAGE_RULE 
KEYFRAMES_RULE 
KEYFRAME_RULE 
NAMESPACE_RULE 
SUPPORTS_RULE 
UNKNOWN_RULE 
STYLE_RULE 
CHARSET_RULE 
IMPORT_RULE 
MEDIA_RULE 
FONT_FACE_RULE 
PAGE_RULE 
KEYFRAMES_RULE 
KEYFRAME_RULE 
NAMESPACE_RULE 
SUPPORTS_RULE 

◆ Type [2/2]

Enumerator
UNKNOWN_RULE 
STYLE_RULE 
CHARSET_RULE 
IMPORT_RULE 
MEDIA_RULE 
FONT_FACE_RULE 
PAGE_RULE 
KEYFRAMES_RULE 
KEYFRAME_RULE 
NAMESPACE_RULE 
SUPPORTS_RULE 
UNKNOWN_RULE 
STYLE_RULE 
CHARSET_RULE 
IMPORT_RULE 
MEDIA_RULE 
FONT_FACE_RULE 
PAGE_RULE 
KEYFRAMES_RULE 
KEYFRAME_RULE 
NAMESPACE_RULE 
SUPPORTS_RULE 

Constructor & Destructor Documentation

◆ ~CSSRule() [1/2]

virtual WebCore::CSSRule::~CSSRule ( )
inlinevirtual

◆ CSSRule() [1/2]

WebCore::CSSRule::CSSRule ( CSSStyleSheet parent)
inlineprotected

◆ ~CSSRule() [2/2]

virtual WebCore::CSSRule::~CSSRule ( )
inlinevirtual

◆ CSSRule() [2/2]

WebCore::CSSRule::CSSRule ( CSSStyleSheet parent)
inlineprotected

Member Function Documentation

◆ cssText() [1/2]

virtual String WebCore::CSSRule::cssText ( ) const
pure virtual

◆ cssText() [2/2]

virtual String WebCore::CSSRule::cssText ( ) const
pure virtual

◆ hasCachedSelectorText() [1/2]

bool WebCore::CSSRule::hasCachedSelectorText ( ) const
inlineprotected

◆ hasCachedSelectorText() [2/2]

bool WebCore::CSSRule::hasCachedSelectorText ( ) const
inlineprotected

◆ parentRule() [1/2]

CSSRule* WebCore::CSSRule::parentRule ( ) const
inline

◆ parentRule() [2/2]

CSSRule* WebCore::CSSRule::parentRule ( ) const
inline

◆ parentStyleSheet() [1/2]

CSSStyleSheet* WebCore::CSSRule::parentStyleSheet ( ) const
inline

◆ parentStyleSheet() [2/2]

CSSStyleSheet* WebCore::CSSRule::parentStyleSheet ( ) const
inline

◆ parserContext() [1/2]

const CSSParserContext & CSSRule::parserContext ( ) const
protected

◆ parserContext() [2/2]

const CSSParserContext& WebCore::CSSRule::parserContext ( ) const
protected

◆ reattach() [1/2]

virtual void WebCore::CSSRule::reattach ( StyleRuleBase )
pure virtual

◆ reattach() [2/2]

virtual void WebCore::CSSRule::reattach ( StyleRuleBase )
pure virtual

◆ setCssText() [1/2]

ExceptionOr< void > CSSRule::setCssText ( const String )

◆ setCssText() [2/2]

WEBCORE_EXPORT ExceptionOr<void> WebCore::CSSRule::setCssText ( const String )

◆ setHasCachedSelectorText() [1/2]

void WebCore::CSSRule::setHasCachedSelectorText ( bool  hasCachedSelectorText) const
inlineprotected

◆ setHasCachedSelectorText() [2/2]

void WebCore::CSSRule::setHasCachedSelectorText ( bool  hasCachedSelectorText) const
inlineprotected

◆ setParentRule() [1/2]

void WebCore::CSSRule::setParentRule ( CSSRule rule)
inline

◆ setParentRule() [2/2]

void WebCore::CSSRule::setParentRule ( CSSRule rule)
inline

◆ setParentStyleSheet() [1/2]

void WebCore::CSSRule::setParentStyleSheet ( CSSStyleSheet styleSheet)
inline

◆ setParentStyleSheet() [2/2]

void WebCore::CSSRule::setParentStyleSheet ( CSSStyleSheet styleSheet)
inline

◆ type() [1/2]

virtual Type WebCore::CSSRule::type ( ) const
pure virtual

Implemented in WebCore::CSSKeyframesRule.

◆ type() [2/2]

virtual Type WebCore::CSSRule::type ( ) const
pure virtual

Implemented in WebCore::CSSKeyframesRule.

Member Data Documentation

◆ m_parentRule

CSSRule* WebCore::CSSRule::m_parentRule

◆ m_parentStyleSheet

CSSStyleSheet* WebCore::CSSRule::m_parentStyleSheet

The documentation for this class was generated from the following files: