Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
RuleValue Struct Reference
Collaboration diagram for RuleValue:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 RuleValue (nsICSSStyleRule *aRule, nsCSSSelector *aSelector)
 |RuleValue|s are constructed before they become part of the |RuleHash|, to act as rule/selector pairs.
RuleValueAdd (PRInt32 aBackwardIndex, RuleValue *aNext)
 ~RuleValue ()
voidoperator new (size_t aSize, PLArenaPool &aArena) CPP_THROW_NEW

Public Attributes

nsICSSStyleRulemRule
nsCSSSelectormSelector
PRInt32 mBackwardIndex
RuleValuemNext

Detailed Description

Definition at line 102 of file nsCSSStyleSheet.cpp.


Constructor & Destructor Documentation

RuleValue::RuleValue ( nsICSSStyleRule aRule,
nsCSSSelector aSelector 
) [inline]

|RuleValue|s are constructed before they become part of the |RuleHash|, to act as rule/selector pairs.

|Add| is called when they are added to the |RuleHash|, and can be considered the second half of the constructor.

|RuleValue|s are added to the rule hash from highest weight/order to lowest (since this is the fast way to build a singly linked list), so the index used to remember the order is backwards.

Definition at line 113 of file nsCSSStyleSheet.cpp.

    : mRule(aRule), mSelector(aSelector) {}
RuleValue::~RuleValue ( ) [inline]

Definition at line 127 of file nsCSSStyleSheet.cpp.

  {
    // Rule values are arena allocated. No need for any deletion.
  }

Member Function Documentation

RuleValue* RuleValue::Add ( PRInt32  aBackwardIndex,
RuleValue aNext 
) [inline]

Definition at line 116 of file nsCSSStyleSheet.cpp.

  {
    mBackwardIndex = aBackwardIndex;
    mNext = aNext;
    return this;
  }

Here is the caller graph for this function:

void* RuleValue::operator new ( size_t  aSize,
PLArenaPool aArena 
) [inline]

Definition at line 133 of file nsCSSStyleSheet.cpp.

                                                                      {
    void *mem;
    PL_ARENA_ALLOCATE(mem, &aArena, aSize);
    return mem;
  }

Member Data Documentation

Definition at line 141 of file nsCSSStyleSheet.cpp.

Definition at line 142 of file nsCSSStyleSheet.cpp.

Definition at line 139 of file nsCSSStyleSheet.cpp.

Definition at line 140 of file nsCSSStyleSheet.cpp.


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