Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Member Functions | Protected Attributes | Friends
CSSImportantRule Class Reference
Inheritance diagram for CSSImportantRule:
Inheritance graph
Collaboration diagram for CSSImportantRule:
Collaboration graph

List of all members.

Public Member Functions

 CSSImportantRule (nsCSSDeclaration *aDeclaration)
NS_DECL_ISUPPORTS NS_IMETHOD MapRuleInfoInto (nsRuleData *aRuleData)
 |nsIStyleRule::MapRuleInfoInto| is a request to copy all stylistic data represented by the rule that:

Protected Member Functions

virtual ~CSSImportantRule (void)

Protected Attributes



class CSSStyleRuleImpl

Detailed Description

Definition at line 747 of file nsCSSStyleRule.cpp.

Constructor & Destructor Documentation

Definition at line 767 of file nsCSSStyleRule.cpp.

  : mDeclaration(aDeclaration)
CSSImportantRule::~CSSImportantRule ( void  ) [protected, virtual]

Definition at line 772 of file nsCSSStyleRule.cpp.

Member Function Documentation

|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.

Implements nsIStyleRule.

Definition at line 780 of file nsCSSStyleRule.cpp.

  // Check this at runtime because it might be hit in some out-of-memory cases.
  NS_ENSURE_TRUE(mDeclaration->HasImportantData(), NS_ERROR_UNEXPECTED);

  return mDeclaration->MapImportantRuleInfoInto(aRuleData);

Here is the call graph for this function:

Friends And Related Function Documentation

friend class CSSStyleRuleImpl [friend]

Definition at line 764 of file nsCSSStyleRule.cpp.

Member Data Documentation

Definition at line 762 of file nsCSSStyleRule.cpp.

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