Public Member Functions | Static Public Member Functions

nsCSSRuleProcessor Class Reference

The CSS style rule processor provides a mechanism for sibling style sheets to combine their rule processing in order to allow proper cascading to happen. More...

#include <nsCSSRuleProcessor.h>

Collaboration diagram for nsCSSRuleProcessor:

List of all members.

Public Member Functions

 nsCSSRuleProcessor (const nsCOMArray< nsICSSStyleSheet > &aSheets, PRUint8 aSheetType)
virtual ~nsCSSRuleProcessor ()
nsresult ClearRuleCascades ()
virtual nsresult RulesMatching (ElementRuleProcessorData *aData)
virtual nsresult RulesMatching (PseudoElementRuleProcessorData *aData)
virtual nsresult RulesMatching (AnonBoxRuleProcessorData *aData)
virtual nsReStyleHint HasStateDependentStyle (StateRuleProcessorData *aData)
virtual nsReStyleHint HasAttributeDependentStyle (AttributeRuleProcessorData *aData)
virtual nsresult MediumFeaturesChanged (nsPresContext *aPresContext, PRBool *aRulesChanged)
PRBool AppendFontFaceRules (nsPresContext *aPresContext, nsTArray< nsFontFaceRuleContainer > &aArray)

Static Public Member Functions

static void Startup ()
static void FreeSystemMetrics ()
static PRBool HasSystemMetric (nsIAtom *aMetric)
static PRBool SelectorListMatches (RuleProcessorData &aData, nsCSSSelectorList *aSelectorList)

Detailed Description

The CSS style rule processor provides a mechanism for sibling style sheets to combine their rule processing in order to allow proper cascading to happen.

CSS style rule processors keep a live reference on all style sheets bound to them. The CSS style sheets keep a weak reference to all the processors that they are bound to (many to many). The CSS style sheet is told when the rule processor is going away (via DropRuleProcessor).


Constructor & Destructor Documentation

nsCSSRuleProcessor::nsCSSRuleProcessor ( const nsCOMArray< nsICSSStyleSheet > &  aSheets,
PRUint8  aSheetType 
)
virtual nsCSSRuleProcessor::~nsCSSRuleProcessor (  )  [virtual]

Member Function Documentation

PRBool nsCSSRuleProcessor::AppendFontFaceRules ( nsPresContext aPresContext,
nsTArray< nsFontFaceRuleContainer > &  aArray 
)
nsresult nsCSSRuleProcessor::ClearRuleCascades (  ) 
static void nsCSSRuleProcessor::FreeSystemMetrics (  )  [static]
virtual nsReStyleHint nsCSSRuleProcessor::HasAttributeDependentStyle ( AttributeRuleProcessorData aData  )  [virtual]
virtual nsReStyleHint nsCSSRuleProcessor::HasStateDependentStyle ( StateRuleProcessorData aData  )  [virtual]
static PRBool nsCSSRuleProcessor::HasSystemMetric ( nsIAtom aMetric  )  [static]
virtual nsresult nsCSSRuleProcessor::MediumFeaturesChanged ( nsPresContext aPresContext,
PRBool aRulesChanged 
) [virtual]
virtual nsresult nsCSSRuleProcessor::RulesMatching ( ElementRuleProcessorData aData  )  [virtual]
virtual nsresult nsCSSRuleProcessor::RulesMatching ( AnonBoxRuleProcessorData aData  )  [virtual]
virtual nsresult nsCSSRuleProcessor::RulesMatching ( PseudoElementRuleProcessorData aData  )  [virtual]
static PRBool nsCSSRuleProcessor::SelectorListMatches ( RuleProcessorData aData,
nsCSSSelectorList *  aSelectorList 
) [static]
static void nsCSSRuleProcessor::Startup (  )  [static]

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