Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsHTMLStyleSheet::HTMLColorRule Class Reference
Inheritance diagram for nsHTMLStyleSheet::HTMLColorRule:
Inheritance graph
Collaboration diagram for nsHTMLStyleSheet::HTMLColorRule:
Collaboration graph

List of all members.

Public Member Functions

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

Public Attributes

nscolor mColor

Detailed Description

Definition at line 106 of file nsHTMLStyleSheet.h.

Constructor & Destructor Documentation

Definition at line 108 of file nsHTMLStyleSheet.h.


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 71 of file nsHTMLStyleSheet.cpp.

  if (aRuleData->mSID == eStyleStruct_Color) {
    if (aRuleData->mColorData->mColor.GetUnit() == eCSSUnit_Null)
      aRuleData->mColorData->mColor = nsCSSValue(mColor);
  return NS_OK;

Member Data Documentation

Definition at line 118 of file nsHTMLStyleSheet.h.

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