Detailed Description

Selectors consist of a bunch of 'roots' which match with elements. When they match, one of these instances is created. Note that it's a structural match - just because it has matched structurally does not mean it is actually active. ComputedStyle holds a list of these.

Public Member Functions

bool StructuralMatch ()
 True if this node still matches the structure of the node it's on. More...
 
void ResetActive ()
 Figures out if this root is active or not. That may, in turn, figure out if the whole selector is/ is not. More...
 

Public Attributes

bool Active
 True if this matched root is 'active'. If all a selectors roots are active then the selector itself is active. More...
 
RootMatcher Root
 The root that matched. More...
 
Dom.Node Node
 The actual node this is on. More...
 
MatchingSelector Selector
 The selector instance. We instance these so we can track if the selector is active or not. More...
 
MatchingRoot NextInStyle
 A linked list of all the matching roots in a ComputedStyle. More...
 
MatchingRoot PreviousInStyle
 A linked list of all the matching roots in a ComputedStyle. More...
 

Properties

bool SelectorActive [get]
 True if the selector is active. More...
 
bool IsTarget [get]
 True if this element is the target. More...
 
StyleRule Rule [get]
 Gets the rule. More...
 
Style Style [get]
 Gets the style. More...
 
LocalMatcher[] LocalMatchers [get]
 The local matchers (if any - may be null). All of these must match in order for this matched root to be active. More...
 

Member Function Documentation

void Css.MatchingRoot.ResetActive ( )
inline

Figures out if this root is active or not. That may, in turn, figure out if the whole selector is/ is not.

bool Css.MatchingRoot.StructuralMatch ( )
inline

True if this node still matches the structure of the node it's on.

Member Data Documentation

bool Css.MatchingRoot.Active

True if this matched root is 'active'. If all a selectors roots are active then the selector itself is active.

MatchingRoot Css.MatchingRoot.NextInStyle

A linked list of all the matching roots in a ComputedStyle.

Dom.Node Css.MatchingRoot.Node

The actual node this is on.

MatchingRoot Css.MatchingRoot.PreviousInStyle

A linked list of all the matching roots in a ComputedStyle.

RootMatcher Css.MatchingRoot.Root

The root that matched.

MatchingSelector Css.MatchingRoot.Selector

The selector instance. We instance these so we can track if the selector is active or not.

Property Documentation

bool Css.MatchingRoot.IsTarget
get

True if this element is the target.

LocalMatcher [] Css.MatchingRoot.LocalMatchers
get

The local matchers (if any - may be null). All of these must match in order for this matched root to be active.

StyleRule Css.MatchingRoot.Rule
get

Gets the rule.

bool Css.MatchingRoot.SelectorActive
get

True if the selector is active.

Style Css.MatchingRoot.Style
get

Gets the style.