Back to index

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

#include <nsICSSStyleRule.h>

Inheritance diagram for nsICSSStyleRule:
Inheritance graph
[legend]
Collaboration diagram for nsICSSStyleRule:
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

virtual nsCSSSelectorListSelector (void)=0
virtual PRUint32 GetLineNumber (void) const =0
virtual void SetLineNumber (PRUint32 aLineNumber)=0
virtual nsCSSDeclarationGetDeclaration (void) const =0
virtual already_AddRefed
< nsICSSStyleRule
DeclarationChanged (PRBool aHandleContainer)=0
 Return a new |nsIStyleRule| instance that replaces the current one, due to a change in the |nsCSSDeclaration|.
virtual already_AddRefed
< nsIStyleRule
GetImportantRule (void)=0
virtual nsresult GetCssText (nsAString &aCssText)=0
virtual nsresult SetCssText (const nsAString &aCssText)=0
virtual nsresult GetParentStyleSheet (nsICSSStyleSheet **aSheet)=0
virtual nsresult GetParentRule (nsICSSGroupRule **aParentRule)=0
virtual nsresult GetSelectorText (nsAString &aSelectorText)=0
virtual nsresult SetSelectorText (const nsAString &aSelectorText)=0
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 220 of file nsICSSStyleRule.h.


Member Enumeration Documentation

anonymous enum [inherited]
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, inherited]

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

Here is the caller graph for this function:

virtual already_AddRefed<nsICSSStyleRule> nsICSSStyleRule::DeclarationChanged ( PRBool  aHandleContainer) [pure virtual]

Return a new |nsIStyleRule| instance that replaces the current one, due to a change in the |nsCSSDeclaration|.

Due to the |nsIStyleRule| contract of immutability, this must be called if the declaration is modified.

|DeclarationChanged| handles replacing the object in the container sheet or group rule if |aHandleContainer| is true.

Implemented in CSSStyleRuleImpl.

Here is the caller graph for this function:

virtual nsresult nsICSSStyleRule::GetCssText ( nsAString &  aCssText) [pure virtual]

Implemented in CSSStyleRuleImpl.

virtual nsCSSDeclaration* nsICSSStyleRule::GetDeclaration ( void  ) const [pure virtual]

Implemented in CSSStyleRuleImpl.

Here is the caller graph for this function:

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

Implemented in CSSStyleRuleImpl.

Here is the caller graph for this function:

Implemented in CSSStyleRuleImpl.

virtual PRUint32 nsICSSStyleRule::GetLineNumber ( void  ) const [pure virtual]

Implemented in CSSStyleRuleImpl.

Here is the caller graph for this function:

virtual nsresult nsICSSStyleRule::GetParentRule ( nsICSSGroupRule **  aParentRule) [pure virtual]

Implemented in CSSStyleRuleImpl.

virtual nsresult nsICSSStyleRule::GetParentStyleSheet ( nsICSSStyleSheet **  aSheet) [pure virtual]

Implemented in CSSStyleRuleImpl.

virtual nsresult nsICSSStyleRule::GetSelectorText ( nsAString &  aSelectorText) [pure virtual]

Implemented in CSSStyleRuleImpl.

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

Implemented in CSSStyleRuleImpl.

Here is the caller graph for this function:

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

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:

virtual nsCSSSelectorList* nsICSSStyleRule::Selector ( void  ) [pure virtual]

Implemented in CSSStyleRuleImpl.

Here is the caller graph for this function:

virtual nsresult nsICSSStyleRule::SetCssText ( const nsAString &  aCssText) [pure virtual]

Implemented in CSSStyleRuleImpl.

virtual void nsICSSStyleRule::SetLineNumber ( PRUint32  aLineNumber) [pure virtual]

Implemented in CSSStyleRuleImpl.

NS_IMETHOD nsICSSRule::SetParentRule ( nsICSSGroupRule aRule) [pure virtual, inherited]

Implemented in CSSStyleRuleImpl.

Here is the caller graph for this function:

virtual nsresult nsICSSStyleRule::SetSelectorText ( const nsAString &  aSelectorText) [pure virtual]

Implemented in CSSStyleRuleImpl.

NS_IMETHOD nsICSSRule::SetStyleSheet ( nsICSSStyleSheet aSheet) [pure virtual, inherited]

Implemented in CSSStyleRuleImpl, and nsCSSMediaRule.

Here is the caller graph for this function:


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