Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Static Protected Member Functions

nsRuleNode Class Reference

nsRuleNode is a node in a lexicographic tree (the "rule tree") indexed by style rules (implementations of nsIStyleRule). More...

#include <nsRuleNode.h>

Collaboration diagram for nsRuleNode:

List of all members.

Classes

struct  ComputedCalc
struct  Key

Public Types

enum  RuleDetail {
  eRuleNone, eRulePartialReset, eRulePartialMixed, eRulePartialInherited,
  eRuleFullReset, eRuleFullMixed, eRuleFullInherited
}

Public Member Functions

void * operator new (size_t sz, nsPresContext *aContext) throw ()
void Destroy ()
void AddRef ()
void Release ()
nsRuleNodeTransition (nsIStyleRule *aRule, PRUint8 aLevel, PRPackedBool aIsImportantRule)
nsRuleNodeGetParent () const
PRBool IsRoot () const
PRUint8 GetLevel () const
PRBool IsImportantRule () const
nsIStyleRule * GetRule () const
nsPresContextGetPresContext () const
const void * GetStyleData (nsStyleStructID aSID, nsStyleContext *aContext, PRBool aComputeData)
const nsStyleFontGetStyleFont (nsStyleContext *aContext, PRBool aComputeData)
const nsStyleColorGetStyleColor (nsStyleContext *aContext, PRBool aComputeData)
const nsStyleBackgroundGetStyleBackground (nsStyleContext *aContext, PRBool aComputeData)
const nsStyleListGetStyleList (nsStyleContext *aContext, PRBool aComputeData)
const nsStylePositionGetStylePosition (nsStyleContext *aContext, PRBool aComputeData)
const nsStyleTextGetStyleText (nsStyleContext *aContext, PRBool aComputeData)
const nsStyleTextResetGetStyleTextReset (nsStyleContext *aContext, PRBool aComputeData)
const nsStyleDisplayGetStyleDisplay (nsStyleContext *aContext, PRBool aComputeData)
const nsStyleVisibilityGetStyleVisibility (nsStyleContext *aContext, PRBool aComputeData)
const nsStyleContentGetStyleContent (nsStyleContext *aContext, PRBool aComputeData)
const nsStyleQuotesGetStyleQuotes (nsStyleContext *aContext, PRBool aComputeData)
const nsStyleUserInterfaceGetStyleUserInterface (nsStyleContext *aContext, PRBool aComputeData)
const nsStyleUIResetGetStyleUIReset (nsStyleContext *aContext, PRBool aComputeData)
const nsStyleTableGetStyleTable (nsStyleContext *aContext, PRBool aComputeData)
const nsStyleTableBorderGetStyleTableBorder (nsStyleContext *aContext, PRBool aComputeData)
const nsStyleMarginGetStyleMargin (nsStyleContext *aContext, PRBool aComputeData)
const nsStylePaddingGetStylePadding (nsStyleContext *aContext, PRBool aComputeData)
const nsStyleBorderGetStyleBorder (nsStyleContext *aContext, PRBool aComputeData)
const nsStyleOutlineGetStyleOutline (nsStyleContext *aContext, PRBool aComputeData)
const nsStyleXULGetStyleXUL (nsStyleContext *aContext, PRBool aComputeData)
const nsStyleSVGGetStyleSVG (nsStyleContext *aContext, PRBool aComputeData)
const nsStyleSVGResetGetStyleSVGReset (nsStyleContext *aContext, PRBool aComputeData)
const nsStyleColumnGetStyleColumn (nsStyleContext *aContext, PRBool aComputeData)
void Mark ()
PRBool Sweep ()
PRBool TreeHasCachedData () const

Static Public Member Functions

static nsRuleNodeCreateRootNode (nsPresContext *aPresContext)
static PRBool HasAuthorSpecifiedRules (nsStyleContext *aStyleContext, PRUint32 ruleTypeMask, PRBool aAuthorColorsAllowed)
static nscoord CalcLengthWithInitialFont (nsPresContext *aPresContext, const nsCSSValue &aValue)
static nscoord CalcLength (const nsCSSValue &aValue, nsStyleContext *aStyleContext, nsPresContext *aPresContext, PRBool &aCanStoreInRuleTree)
static ComputedCalc SpecifiedCalcToComputedCalc (const nsCSSValue &aValue, nsStyleContext *aStyleContext, nsPresContext *aPresContext, PRBool &aCanStoreInRuleTree)
static nscoord ComputeComputedCalc (const nsStyleCoord &aCoord, nscoord aPercentageBasis)
static nscoord ComputeCoordPercentCalc (const nsStyleCoord &aCoord, nscoord aPercentageBasis)

Static Public Attributes

static nsILanguageAtomService * gLangService

Protected Member Functions

void DestroyInternal (nsRuleNode ***aDestroyQueueTail)
void PropagateDependentBit (PRUint32 aBit, nsRuleNode *aHighestNode)
void PropagateNoneBit (PRUint32 aBit, nsRuleNode *aHighestNode)
const void * SetDefaultOnRoot (const nsStyleStructID aSID, nsStyleContext *aContext)
const void * WalkRuleTree (const nsStyleStructID aSID, nsStyleContext *aContext, nsRuleData *aRuleData, nsRuleDataStruct *aSpecificData)
const void * ComputeDisplayData (void *aStartStruct, const nsRuleDataStruct &aData, nsStyleContext *aContext, nsRuleNode *aHighestNode, RuleDetail aRuleDetail, const PRBool aCanStoreInRuleTree)
const void * ComputeVisibilityData (void *aStartStruct, const nsRuleDataStruct &aData, nsStyleContext *aContext, nsRuleNode *aHighestNode, RuleDetail aRuleDetail, const PRBool aCanStoreInRuleTree)
const void * ComputeFontData (void *aStartStruct, const nsRuleDataStruct &aData, nsStyleContext *aContext, nsRuleNode *aHighestNode, RuleDetail aRuleDetail, const PRBool aCanStoreInRuleTree)
const void * ComputeColorData (void *aStartStruct, const nsRuleDataStruct &aData, nsStyleContext *aContext, nsRuleNode *aHighestNode, RuleDetail aRuleDetail, const PRBool aCanStoreInRuleTree)
const void * ComputeBackgroundData (void *aStartStruct, const nsRuleDataStruct &aData, nsStyleContext *aContext, nsRuleNode *aHighestNode, RuleDetail aRuleDetail, const PRBool aCanStoreInRuleTree)
const void * ComputeMarginData (void *aStartStruct, const nsRuleDataStruct &aData, nsStyleContext *aContext, nsRuleNode *aHighestNode, RuleDetail aRuleDetail, const PRBool aCanStoreInRuleTree)
const void * ComputeBorderData (void *aStartStruct, const nsRuleDataStruct &aData, nsStyleContext *aContext, nsRuleNode *aHighestNode, RuleDetail aRuleDetail, const PRBool aCanStoreInRuleTree)
const void * ComputePaddingData (void *aStartStruct, const nsRuleDataStruct &aData, nsStyleContext *aContext, nsRuleNode *aHighestNode, RuleDetail aRuleDetail, const PRBool aCanStoreInRuleTree)
const void * ComputeOutlineData (void *aStartStruct, const nsRuleDataStruct &aData, nsStyleContext *aContext, nsRuleNode *aHighestNode, RuleDetail aRuleDetail, const PRBool aCanStoreInRuleTree)
const void * ComputeListData (void *aStartStruct, const nsRuleDataStruct &aData, nsStyleContext *aContext, nsRuleNode *aHighestNode, RuleDetail aRuleDetail, const PRBool aCanStoreInRuleTree)
const void * ComputePositionData (void *aStartStruct, const nsRuleDataStruct &aData, nsStyleContext *aContext, nsRuleNode *aHighestNode, RuleDetail aRuleDetail, const PRBool aCanStoreInRuleTree)
const void * ComputeTableData (void *aStartStruct, const nsRuleDataStruct &aData, nsStyleContext *aContext, nsRuleNode *aHighestNode, RuleDetail aRuleDetail, const PRBool aCanStoreInRuleTree)
const void * ComputeTableBorderData (void *aStartStruct, const nsRuleDataStruct &aData, nsStyleContext *aContext, nsRuleNode *aHighestNode, RuleDetail aRuleDetail, const PRBool aCanStoreInRuleTree)
const void * ComputeContentData (void *aStartStruct, const nsRuleDataStruct &aData, nsStyleContext *aContext, nsRuleNode *aHighestNode, RuleDetail aRuleDetail, const PRBool aCanStoreInRuleTree)
const void * ComputeQuotesData (void *aStartStruct, const nsRuleDataStruct &aData, nsStyleContext *aContext, nsRuleNode *aHighestNode, RuleDetail aRuleDetail, const PRBool aCanStoreInRuleTree)
const void * ComputeTextData (void *aStartStruct, const nsRuleDataStruct &aData, nsStyleContext *aContext, nsRuleNode *aHighestNode, RuleDetail aRuleDetail, const PRBool aCanStoreInRuleTree)
const void * ComputeTextResetData (void *aStartStruct, const nsRuleDataStruct &aData, nsStyleContext *aContext, nsRuleNode *aHighestNode, RuleDetail aRuleDetail, const PRBool aCanStoreInRuleTree)
const void * ComputeUserInterfaceData (void *aStartStruct, const nsRuleDataStruct &aData, nsStyleContext *aContext, nsRuleNode *aHighestNode, RuleDetail aRuleDetail, const PRBool aCanStoreInRuleTree)
const void * ComputeUIResetData (void *aStartStruct, const nsRuleDataStruct &aData, nsStyleContext *aContext, nsRuleNode *aHighestNode, RuleDetail aRuleDetail, const PRBool aCanStoreInRuleTree)
const void * ComputeXULData (void *aStartStruct, const nsRuleDataStruct &aData, nsStyleContext *aContext, nsRuleNode *aHighestNode, RuleDetail aRuleDetail, const PRBool aCanStoreInRuleTree)
const void * ComputeColumnData (void *aStartStruct, const nsRuleDataStruct &aData, nsStyleContext *aContext, nsRuleNode *aHighestNode, RuleDetail aRuleDetail, const PRBool aCanStoreInRuleTree)
const void * ComputeSVGData (void *aStartStruct, const nsRuleDataStruct &aData, nsStyleContext *aContext, nsRuleNode *aHighestNode, RuleDetail aRuleDetail, const PRBool aCanStoreInRuleTree)
const void * ComputeSVGResetData (void *aStartStruct, const nsRuleDataStruct &aData, nsStyleContext *aContext, nsRuleNode *aHighestNode, RuleDetail aRuleDetail, const PRBool aCanStoreInRuleTree)
void AdjustLogicalBoxProp (nsStyleContext *aContext, const nsCSSValue &aLTRSource, const nsCSSValue &aRTLSource, const nsCSSValue &aLTRLogicalValue, const nsCSSValue &aRTLLogicalValue, mozilla::css::Side aSide, nsCSSRect &aValueRect, PRBool &aCanStoreInRuleTree)
RuleDetail CheckSpecifiedProperties (const nsStyleStructID aSID, const nsRuleDataStruct &aRuleDataStruct)
const void * GetParentData (const nsStyleStructID aSID)
const nsStyleFontGetParentFont ()
const nsStyleColorGetParentColor ()
const nsStyleBackgroundGetParentBackground ()
const nsStyleListGetParentList ()
const nsStylePositionGetParentPosition ()
const nsStyleTextGetParentText ()
const nsStyleTextResetGetParentTextReset ()
const nsStyleDisplayGetParentDisplay ()
const nsStyleVisibilityGetParentVisibility ()
const nsStyleContentGetParentContent ()
const nsStyleQuotesGetParentQuotes ()
const nsStyleUserInterfaceGetParentUserInterface ()
const nsStyleUIResetGetParentUIReset ()
const nsStyleTableGetParentTable ()
const nsStyleTableBorderGetParentTableBorder ()
const nsStyleMarginGetParentMargin ()
const nsStylePaddingGetParentPadding ()
const nsStyleBorderGetParentBorder ()
const nsStyleOutlineGetParentOutline ()
const nsStyleXULGetParentXUL ()
const nsStyleSVGGetParentSVG ()
const nsStyleSVGResetGetParentSVGReset ()
const nsStyleColumnGetParentColumn ()
const void * GetDisplayData (nsStyleContext *aContext)
const void * GetVisibilityData (nsStyleContext *aContext)
const void * GetFontData (nsStyleContext *aContext)
const void * GetColorData (nsStyleContext *aContext)
const void * GetBackgroundData (nsStyleContext *aContext)
const void * GetMarginData (nsStyleContext *aContext)
const void * GetBorderData (nsStyleContext *aContext)
const void * GetPaddingData (nsStyleContext *aContext)
const void * GetOutlineData (nsStyleContext *aContext)
const void * GetListData (nsStyleContext *aContext)
const void * GetPositionData (nsStyleContext *aContext)
const void * GetTableData (nsStyleContext *aContext)
const void * GetTableBorderData (nsStyleContext *aContext)
const void * GetContentData (nsStyleContext *aContext)
const void * GetQuotesData (nsStyleContext *aContext)
const void * GetTextData (nsStyleContext *aContext)
const void * GetTextResetData (nsStyleContext *aContext)
const void * GetUserInterfaceData (nsStyleContext *aContext)
const void * GetUIResetData (nsStyleContext *aContext)
const void * GetXULData (nsStyleContext *aContext)
const void * GetColumnData (nsStyleContext *aContext)
const void * GetSVGData (nsStyleContext *aContext)
const void * GetSVGResetData (nsStyleContext *aContext)
already_AddRefed
< nsCSSShadowArray
GetShadowData (const nsCSSValueList *aList, nsStyleContext *aContext, PRBool aIsBoxShadow, PRBool &inherited)

Static Protected Member Functions

static void SetFontSize (nsPresContext *aPresContext, const nsRuleDataFont &aFontData, const nsStyleFont *aFont, const nsStyleFont *aParentFont, nscoord *aSize, const nsFont &aSystemFont, nscoord aParentSize, nscoord aScriptLevelAdjustedParentSize, PRBool aUsedStartStruct, PRBool aAtRoot, PRBool &aCanStoreInRuleTree)
static void SetFont (nsPresContext *aPresContext, nsStyleContext *aContext, nscoord aMinFontSize, PRUint8 aGenericFontID, const nsRuleDataFont &aFontData, const nsStyleFont *aParentFont, nsStyleFont *aFont, PRBool aStartStruct, PRBool &aCanStoreInRuleTree)
static void SetGenericFont (nsPresContext *aPresContext, nsStyleContext *aContext, PRUint8 aGenericFontID, nscoord aMinFontSize, nsStyleFont *aFont)

Detailed Description

nsRuleNode is a node in a lexicographic tree (the "rule tree") indexed by style rules (implementations of nsIStyleRule).

The rule tree is owned by the nsStyleSet and is destroyed when the presentation of the document goes away. It is garbage-collected (using mark-and-sweep garbage collection) during the lifetime of the document (when dynamic changes cause the destruction of enough style contexts). Rule nodes are marked if they are pointed to by a style context or one of their descendants is.

An nsStyleContext, which represents the computed style data for an element, points to an nsRuleNode. The path from the root of the rule tree to the nsStyleContext's mRuleNode gives the list of the rules matched, from least important in the cascading order to most important in the cascading order.

The reason for using a lexicographic tree is that it allows for sharing of style data, which saves both memory (for storing the computed style data) and time (for computing them). This sharing depends on the computed style data being stored in structs (nsStyle*) that contain only properties that are inherited by default ("inherited structs") or structs that contain only properties that are not inherited by default ("reset structs"). The optimization depends on the normal case being that style rules specify relatively few properties and even that elements generally have relatively few properties specified. This allows sharing in the following ways: 1. [mainly reset structs] When a style data struct will contain the same computed value for any elements that match the same set of rules (common for reset structs), it can be stored on the nsRuleNode instead of on the nsStyleContext. 2. [only? reset structs] When (1) occurs, and an nsRuleNode doesn't have any rules that change the values in the struct, the nsRuleNode can share that struct with its parent nsRuleNode. 3. [mainly inherited structs] When an element doesn't match any rules that change the value of a property (or, in the edge case, when all the values specified are 'inherit'), the nsStyleContext can use the same nsStyle* struct as its parent nsStyleContext.

Since the data represented by an nsIStyleRule are immutable, the data represented by an nsRuleNode are also immutable.


Member Enumeration Documentation

Enumerator:
eRuleNone 
eRulePartialReset 
eRulePartialMixed 
eRulePartialInherited 
eRuleFullReset 
eRuleFullMixed 
eRuleFullInherited 

Member Function Documentation

void nsRuleNode::AddRef (  )  [inline]
void nsRuleNode::AdjustLogicalBoxProp ( nsStyleContext aContext,
const nsCSSValue aLTRSource,
const nsCSSValue aRTLSource,
const nsCSSValue aLTRLogicalValue,
const nsCSSValue aRTLLogicalValue,
mozilla::css::Side  aSide,
nsCSSRect aValueRect,
PRBool aCanStoreInRuleTree 
) [protected]
static nscoord nsRuleNode::CalcLength ( const nsCSSValue aValue,
nsStyleContext aStyleContext,
nsPresContext aPresContext,
PRBool aCanStoreInRuleTree 
) [static]
static nscoord nsRuleNode::CalcLengthWithInitialFont ( nsPresContext aPresContext,
const nsCSSValue aValue 
) [static]
RuleDetail nsRuleNode::CheckSpecifiedProperties ( const nsStyleStructID  aSID,
const nsRuleDataStruct aRuleDataStruct 
) [inline, protected]
const void* nsRuleNode::ComputeBackgroundData ( void *  aStartStruct,
const nsRuleDataStruct aData,
nsStyleContext aContext,
nsRuleNode aHighestNode,
RuleDetail  aRuleDetail,
const PRBool  aCanStoreInRuleTree 
) [protected]
const void* nsRuleNode::ComputeBorderData ( void *  aStartStruct,
const nsRuleDataStruct aData,
nsStyleContext aContext,
nsRuleNode aHighestNode,
RuleDetail  aRuleDetail,
const PRBool  aCanStoreInRuleTree 
) [protected]
const void* nsRuleNode::ComputeColorData ( void *  aStartStruct,
const nsRuleDataStruct aData,
nsStyleContext aContext,
nsRuleNode aHighestNode,
RuleDetail  aRuleDetail,
const PRBool  aCanStoreInRuleTree 
) [protected]
const void* nsRuleNode::ComputeColumnData ( void *  aStartStruct,
const nsRuleDataStruct aData,
nsStyleContext aContext,
nsRuleNode aHighestNode,
RuleDetail  aRuleDetail,
const PRBool  aCanStoreInRuleTree 
) [protected]
static nscoord nsRuleNode::ComputeComputedCalc ( const nsStyleCoord aCoord,
nscoord  aPercentageBasis 
) [static]
const void* nsRuleNode::ComputeContentData ( void *  aStartStruct,
const nsRuleDataStruct aData,
nsStyleContext aContext,
nsRuleNode aHighestNode,
RuleDetail  aRuleDetail,
const PRBool  aCanStoreInRuleTree 
) [protected]
static nscoord nsRuleNode::ComputeCoordPercentCalc ( const nsStyleCoord aCoord,
nscoord  aPercentageBasis 
) [static]
const void* nsRuleNode::ComputeDisplayData ( void *  aStartStruct,
const nsRuleDataStruct aData,
nsStyleContext aContext,
nsRuleNode aHighestNode,
RuleDetail  aRuleDetail,
const PRBool  aCanStoreInRuleTree 
) [protected]
const void* nsRuleNode::ComputeFontData ( void *  aStartStruct,
const nsRuleDataStruct aData,
nsStyleContext aContext,
nsRuleNode aHighestNode,
RuleDetail  aRuleDetail,
const PRBool  aCanStoreInRuleTree 
) [protected]
const void* nsRuleNode::ComputeListData ( void *  aStartStruct,
const nsRuleDataStruct aData,
nsStyleContext aContext,
nsRuleNode aHighestNode,
RuleDetail  aRuleDetail,
const PRBool  aCanStoreInRuleTree 
) [protected]
const void* nsRuleNode::ComputeMarginData ( void *  aStartStruct,
const nsRuleDataStruct aData,
nsStyleContext aContext,
nsRuleNode aHighestNode,
RuleDetail  aRuleDetail,
const PRBool  aCanStoreInRuleTree 
) [protected]
const void* nsRuleNode::ComputeOutlineData ( void *  aStartStruct,
const nsRuleDataStruct aData,
nsStyleContext aContext,
nsRuleNode aHighestNode,
RuleDetail  aRuleDetail,
const PRBool  aCanStoreInRuleTree 
) [protected]
const void* nsRuleNode::ComputePaddingData ( void *  aStartStruct,
const nsRuleDataStruct aData,
nsStyleContext aContext,
nsRuleNode aHighestNode,
RuleDetail  aRuleDetail,
const PRBool  aCanStoreInRuleTree 
) [protected]
const void* nsRuleNode::ComputePositionData ( void *  aStartStruct,
const nsRuleDataStruct aData,
nsStyleContext aContext,
nsRuleNode aHighestNode,
RuleDetail  aRuleDetail,
const PRBool  aCanStoreInRuleTree 
) [protected]
const void* nsRuleNode::ComputeQuotesData ( void *  aStartStruct,
const nsRuleDataStruct aData,
nsStyleContext aContext,
nsRuleNode aHighestNode,
RuleDetail  aRuleDetail,
const PRBool  aCanStoreInRuleTree 
) [protected]
const void* nsRuleNode::ComputeSVGData ( void *  aStartStruct,
const nsRuleDataStruct aData,
nsStyleContext aContext,
nsRuleNode aHighestNode,
RuleDetail  aRuleDetail,
const PRBool  aCanStoreInRuleTree 
) [protected]
const void* nsRuleNode::ComputeSVGResetData ( void *  aStartStruct,
const nsRuleDataStruct aData,
nsStyleContext aContext,
nsRuleNode aHighestNode,
RuleDetail  aRuleDetail,
const PRBool  aCanStoreInRuleTree 
) [protected]
const void* nsRuleNode::ComputeTableBorderData ( void *  aStartStruct,
const nsRuleDataStruct aData,
nsStyleContext aContext,
nsRuleNode aHighestNode,
RuleDetail  aRuleDetail,
const PRBool  aCanStoreInRuleTree 
) [protected]
const void* nsRuleNode::ComputeTableData ( void *  aStartStruct,
const nsRuleDataStruct aData,
nsStyleContext aContext,
nsRuleNode aHighestNode,
RuleDetail  aRuleDetail,
const PRBool  aCanStoreInRuleTree 
) [protected]
const void* nsRuleNode::ComputeTextData ( void *  aStartStruct,
const nsRuleDataStruct aData,
nsStyleContext aContext,
nsRuleNode aHighestNode,
RuleDetail  aRuleDetail,
const PRBool  aCanStoreInRuleTree 
) [protected]
const void* nsRuleNode::ComputeTextResetData ( void *  aStartStruct,
const nsRuleDataStruct aData,
nsStyleContext aContext,
nsRuleNode aHighestNode,
RuleDetail  aRuleDetail,
const PRBool  aCanStoreInRuleTree 
) [protected]
const void* nsRuleNode::ComputeUIResetData ( void *  aStartStruct,
const nsRuleDataStruct aData,
nsStyleContext aContext,
nsRuleNode aHighestNode,
RuleDetail  aRuleDetail,
const PRBool  aCanStoreInRuleTree 
) [protected]
const void* nsRuleNode::ComputeUserInterfaceData ( void *  aStartStruct,
const nsRuleDataStruct aData,
nsStyleContext aContext,
nsRuleNode aHighestNode,
RuleDetail  aRuleDetail,
const PRBool  aCanStoreInRuleTree 
) [protected]
const void* nsRuleNode::ComputeVisibilityData ( void *  aStartStruct,
const nsRuleDataStruct aData,
nsStyleContext aContext,
nsRuleNode aHighestNode,
RuleDetail  aRuleDetail,
const PRBool  aCanStoreInRuleTree 
) [protected]
const void* nsRuleNode::ComputeXULData ( void *  aStartStruct,
const nsRuleDataStruct aData,
nsStyleContext aContext,
nsRuleNode aHighestNode,
RuleDetail  aRuleDetail,
const PRBool  aCanStoreInRuleTree 
) [protected]
static nsRuleNode* nsRuleNode::CreateRootNode ( nsPresContext aPresContext  )  [static]
void nsRuleNode::Destroy (  )  [inline]
void nsRuleNode::DestroyInternal ( nsRuleNode ***  aDestroyQueueTail  )  [protected]
const void* nsRuleNode::GetBackgroundData ( nsStyleContext aContext  )  [protected]
const void* nsRuleNode::GetBorderData ( nsStyleContext aContext  )  [protected]
const void* nsRuleNode::GetColorData ( nsStyleContext aContext  )  [protected]
const void* nsRuleNode::GetColumnData ( nsStyleContext aContext  )  [protected]
const void* nsRuleNode::GetContentData ( nsStyleContext aContext  )  [protected]
const void* nsRuleNode::GetDisplayData ( nsStyleContext aContext  )  [protected]
const void* nsRuleNode::GetFontData ( nsStyleContext aContext  )  [protected]
PRUint8 nsRuleNode::GetLevel (  )  const [inline]
const void* nsRuleNode::GetListData ( nsStyleContext aContext  )  [protected]
const void* nsRuleNode::GetMarginData ( nsStyleContext aContext  )  [protected]
const void* nsRuleNode::GetOutlineData ( nsStyleContext aContext  )  [protected]
const void* nsRuleNode::GetPaddingData ( nsStyleContext aContext  )  [protected]
nsRuleNode* nsRuleNode::GetParent (  )  const [inline]
const nsStyleBackground* nsRuleNode::GetParentBackground (  )  [protected]
const nsStyleBorder* nsRuleNode::GetParentBorder (  )  [protected]
const nsStyleColor* nsRuleNode::GetParentColor (  )  [protected]
const nsStyleColumn* nsRuleNode::GetParentColumn (  )  [protected]
const nsStyleContent* nsRuleNode::GetParentContent (  )  [protected]
const void* nsRuleNode::GetParentData ( const nsStyleStructID  aSID  )  [protected]
const nsStyleDisplay* nsRuleNode::GetParentDisplay (  )  [protected]
const nsStyleFont* nsRuleNode::GetParentFont (  )  [protected]
const nsStyleList* nsRuleNode::GetParentList (  )  [protected]
const nsStyleMargin* nsRuleNode::GetParentMargin (  )  [protected]
const nsStyleOutline* nsRuleNode::GetParentOutline (  )  [protected]
const nsStylePadding* nsRuleNode::GetParentPadding (  )  [protected]
const nsStylePosition* nsRuleNode::GetParentPosition (  )  [protected]
const nsStyleQuotes* nsRuleNode::GetParentQuotes (  )  [protected]
const nsStyleSVG* nsRuleNode::GetParentSVG (  )  [protected]
const nsStyleSVGReset* nsRuleNode::GetParentSVGReset (  )  [protected]
const nsStyleTable* nsRuleNode::GetParentTable (  )  [protected]
const nsStyleTableBorder* nsRuleNode::GetParentTableBorder (  )  [protected]
const nsStyleText* nsRuleNode::GetParentText (  )  [protected]
const nsStyleTextReset* nsRuleNode::GetParentTextReset (  )  [protected]
const nsStyleUIReset* nsRuleNode::GetParentUIReset (  )  [protected]
const nsStyleUserInterface* nsRuleNode::GetParentUserInterface (  )  [protected]
const nsStyleVisibility* nsRuleNode::GetParentVisibility (  )  [protected]
const nsStyleXUL* nsRuleNode::GetParentXUL (  )  [protected]
const void* nsRuleNode::GetPositionData ( nsStyleContext aContext  )  [protected]
nsPresContext* nsRuleNode::GetPresContext (  )  const [inline]
const void* nsRuleNode::GetQuotesData ( nsStyleContext aContext  )  [protected]
nsIStyleRule* nsRuleNode::GetRule (  )  const [inline]
already_AddRefed<nsCSSShadowArray> nsRuleNode::GetShadowData ( const nsCSSValueList aList,
nsStyleContext aContext,
PRBool  aIsBoxShadow,
PRBool inherited 
) [protected]
const nsStyleBackground* nsRuleNode::GetStyleBackground ( nsStyleContext aContext,
PRBool  aComputeData 
)
const nsStyleBorder* nsRuleNode::GetStyleBorder ( nsStyleContext aContext,
PRBool  aComputeData 
)
const nsStyleColor* nsRuleNode::GetStyleColor ( nsStyleContext aContext,
PRBool  aComputeData 
)
const nsStyleColumn* nsRuleNode::GetStyleColumn ( nsStyleContext aContext,
PRBool  aComputeData 
)
const nsStyleContent* nsRuleNode::GetStyleContent ( nsStyleContext aContext,
PRBool  aComputeData 
)
const void* nsRuleNode::GetStyleData ( nsStyleStructID  aSID,
nsStyleContext aContext,
PRBool  aComputeData 
)
const nsStyleDisplay* nsRuleNode::GetStyleDisplay ( nsStyleContext aContext,
PRBool  aComputeData 
)
const nsStyleFont* nsRuleNode::GetStyleFont ( nsStyleContext aContext,
PRBool  aComputeData 
)
const nsStyleList* nsRuleNode::GetStyleList ( nsStyleContext aContext,
PRBool  aComputeData 
)
const nsStyleMargin* nsRuleNode::GetStyleMargin ( nsStyleContext aContext,
PRBool  aComputeData 
)
const nsStyleOutline* nsRuleNode::GetStyleOutline ( nsStyleContext aContext,
PRBool  aComputeData 
)
const nsStylePadding* nsRuleNode::GetStylePadding ( nsStyleContext aContext,
PRBool  aComputeData 
)
const nsStylePosition* nsRuleNode::GetStylePosition ( nsStyleContext aContext,
PRBool  aComputeData 
)
const nsStyleQuotes* nsRuleNode::GetStyleQuotes ( nsStyleContext aContext,
PRBool  aComputeData 
)
const nsStyleSVG* nsRuleNode::GetStyleSVG ( nsStyleContext aContext,
PRBool  aComputeData 
)
const nsStyleSVGReset* nsRuleNode::GetStyleSVGReset ( nsStyleContext aContext,
PRBool  aComputeData 
)
const nsStyleTable* nsRuleNode::GetStyleTable ( nsStyleContext aContext,
PRBool  aComputeData 
)
const nsStyleTableBorder* nsRuleNode::GetStyleTableBorder ( nsStyleContext aContext,
PRBool  aComputeData 
)
const nsStyleText* nsRuleNode::GetStyleText ( nsStyleContext aContext,
PRBool  aComputeData 
)
const nsStyleTextReset* nsRuleNode::GetStyleTextReset ( nsStyleContext aContext,
PRBool  aComputeData 
)
const nsStyleUIReset* nsRuleNode::GetStyleUIReset ( nsStyleContext aContext,
PRBool  aComputeData 
)
const nsStyleUserInterface* nsRuleNode::GetStyleUserInterface ( nsStyleContext aContext,
PRBool  aComputeData 
)
const nsStyleVisibility* nsRuleNode::GetStyleVisibility ( nsStyleContext aContext,
PRBool  aComputeData 
)
const nsStyleXUL* nsRuleNode::GetStyleXUL ( nsStyleContext aContext,
PRBool  aComputeData 
)
const void* nsRuleNode::GetSVGData ( nsStyleContext aContext  )  [protected]
const void* nsRuleNode::GetSVGResetData ( nsStyleContext aContext  )  [protected]
const void* nsRuleNode::GetTableBorderData ( nsStyleContext aContext  )  [protected]
const void* nsRuleNode::GetTableData ( nsStyleContext aContext  )  [protected]
const void* nsRuleNode::GetTextData ( nsStyleContext aContext  )  [protected]
const void* nsRuleNode::GetTextResetData ( nsStyleContext aContext  )  [protected]
const void* nsRuleNode::GetUIResetData ( nsStyleContext aContext  )  [protected]
const void* nsRuleNode::GetUserInterfaceData ( nsStyleContext aContext  )  [protected]
const void* nsRuleNode::GetVisibilityData ( nsStyleContext aContext  )  [protected]
const void* nsRuleNode::GetXULData ( nsStyleContext aContext  )  [protected]
static PRBool nsRuleNode::HasAuthorSpecifiedRules ( nsStyleContext aStyleContext,
PRUint32  ruleTypeMask,
PRBool  aAuthorColorsAllowed 
) [static]
PRBool nsRuleNode::IsImportantRule (  )  const [inline]
PRBool nsRuleNode::IsRoot (  )  const [inline]
void nsRuleNode::Mark (  ) 
void* nsRuleNode::operator new ( size_t  sz,
nsPresContext aContext 
) throw ()
void nsRuleNode::PropagateDependentBit ( PRUint32  aBit,
nsRuleNode aHighestNode 
) [protected]
void nsRuleNode::PropagateNoneBit ( PRUint32  aBit,
nsRuleNode aHighestNode 
) [protected]
void nsRuleNode::Release (  )  [inline]
const void* nsRuleNode::SetDefaultOnRoot ( const nsStyleStructID  aSID,
nsStyleContext aContext 
) [protected]
static void nsRuleNode::SetFont ( nsPresContext aPresContext,
nsStyleContext aContext,
nscoord  aMinFontSize,
PRUint8  aGenericFontID,
const nsRuleDataFont aFontData,
const nsStyleFont aParentFont,
nsStyleFont aFont,
PRBool  aStartStruct,
PRBool aCanStoreInRuleTree 
) [static, protected]
static void nsRuleNode::SetFontSize ( nsPresContext aPresContext,
const nsRuleDataFont aFontData,
const nsStyleFont aFont,
const nsStyleFont aParentFont,
nscoord aSize,
const nsFont aSystemFont,
nscoord  aParentSize,
nscoord  aScriptLevelAdjustedParentSize,
PRBool  aUsedStartStruct,
PRBool  aAtRoot,
PRBool aCanStoreInRuleTree 
) [static, protected]
static void nsRuleNode::SetGenericFont ( nsPresContext aPresContext,
nsStyleContext aContext,
PRUint8  aGenericFontID,
nscoord  aMinFontSize,
nsStyleFont aFont 
) [static, protected]
static ComputedCalc nsRuleNode::SpecifiedCalcToComputedCalc ( const nsCSSValue aValue,
nsStyleContext aStyleContext,
nsPresContext aPresContext,
PRBool aCanStoreInRuleTree 
) [static]
PRBool nsRuleNode::Sweep (  ) 
nsRuleNode* nsRuleNode::Transition ( nsIStyleRule *  aRule,
PRUint8  aLevel,
PRPackedBool  aIsImportantRule 
)
PRBool nsRuleNode::TreeHasCachedData (  )  const [inline]
const void* nsRuleNode::WalkRuleTree ( const nsStyleStructID  aSID,
nsStyleContext aContext,
nsRuleData aRuleData,
nsRuleDataStruct aSpecificData 
) [protected]

Member Data Documentation

nsILanguageAtomService* nsRuleNode::gLangService [static]

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