Back to index

lightning-sunbird  0.9+nobinonly
Public Types | Public Member Functions
nsICSSRule Class Reference

#include <nsICSSRule.h>

Inheritance diagram for nsICSSRule:
Inheritance graph
[legend]
Collaboration diagram for nsICSSRule:
Collaboration graph
[legend]

List of all members.

Public Types

enum  {
  UNKNOWN_RULE = 0, STYLE_RULE = 1, IMPORT_RULE = 2, MEDIA_RULE = 3,
  FONT_FACE_RULE = 4, PAGE_RULE = 5, CHARSET_RULE = 6, NAMESPACE_RULE = 7,
  DOCUMENT_RULE = 8
}

Public Member Functions

NS_IMETHOD GetType (PRInt32 &aType) const =0
NS_IMETHOD GetStyleSheet (nsIStyleSheet *&aSheet) const =0
NS_IMETHOD SetStyleSheet (nsICSSStyleSheet *aSheet)=0
NS_IMETHOD SetParentRule (nsICSSGroupRule *aRule)=0
NS_IMETHOD Clone (nsICSSRule *&aClone) const =0
NS_IMETHOD GetDOMRule (nsIDOMCSSRule **aDOMRule)=0
NS_IMETHOD MapRuleInfoInto (nsRuleData *aRuleData)=0
 |nsIStyleRule::MapRuleInfoInto| is a request to copy all stylistic data represented by the rule that:

Detailed Description

Definition at line 52 of file nsICSSRule.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
UNKNOWN_RULE 
STYLE_RULE 
IMPORT_RULE 
MEDIA_RULE 
FONT_FACE_RULE 
PAGE_RULE 
CHARSET_RULE 
NAMESPACE_RULE 
DOCUMENT_RULE 

Definition at line 55 of file nsICSSRule.h.


Member Function Documentation

NS_IMETHOD nsICSSRule::Clone ( nsICSSRule *&  aClone) const [pure virtual]

Implemented in CSSNameSpaceRuleImpl, CSSStyleRuleImpl, CSSImportRuleImpl, CSSCharsetRuleImpl, nsCSSDocumentRule, and nsCSSMediaRule.

Here is the caller graph for this function:

NS_IMETHOD nsICSSRule::GetDOMRule ( nsIDOMCSSRule **  aDOMRule) [pure virtual]

Implemented in CSSStyleRuleImpl.

Here is the caller graph for this function:

NS_IMETHOD nsICSSRule::GetStyleSheet ( nsIStyleSheet *&  aSheet) const [pure virtual]

Implemented in CSSStyleRuleImpl.

Here is the caller graph for this function:

NS_IMETHOD nsICSSRule::GetType ( PRInt32 aType) const [pure virtual]

Implemented in CSSNameSpaceRuleImpl, CSSStyleRuleImpl, CSSImportRuleImpl, CSSCharsetRuleImpl, nsCSSDocumentRule, and nsCSSMediaRule.

Here is the caller graph for this function:

NS_IMETHOD nsIStyleRule::MapRuleInfoInto ( nsRuleData aRuleData) [pure virtual, inherited]

|nsIStyleRule::MapRuleInfoInto| is a request to copy all stylistic data represented by the rule that:

  • are relevant for |aRuleData->mSID| (the style struct ID)
  • are not already filled into the data struct into the appropriate data struct in |aRuleData|. It is important that only empty data are filled in, since the rule tree is walked from highest priority rule to least, so that the walk can stop if all needed data are found. Thus overwriting non-empty data will break CSS cascading rules.

Implemented in CSSStyleRuleImpl, CSSImportantRule, nsHTMLStyleSheet::TableUngroupedColRule, nsHTMLStyleSheet::TableColRule, nsHTMLStyleSheet::TableColgroupRule, nsHTMLStyleSheet::TableRowRule, nsHTMLStyleSheet::TableTbodyRule, nsHTMLStyleSheet::TableTHRule, nsHTMLStyleSheet::GenericTableRule, nsHTMLStyleSheet::HTMLColorRule, CSSFirstLetterRule, nsMappedAttributes, CSSFirstLineRule, and BodyRule.

Here is the caller graph for this function:

Implemented in CSSStyleRuleImpl.

Here is the caller graph for this function:

Implemented in CSSStyleRuleImpl, and nsCSSMediaRule.

Here is the caller graph for this function:


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