Struct css::selectors::context::MatchingContext [] [src]

pub struct MatchingContext<'a> {
    pub matching_mode: MatchingMode,
    pub bloom_filter: Option<&'a BloomFilter>,
    pub nth_index_cache: Option<&'a mut NthIndexCache>,
    pub visited_handling: VisitedHandlingMode,
    pub relevant_link_found: bool,
    // some fields omitted
}

Data associated with the matching process for a element. This context is used across many selectors for an element, so it's not appropriate for transient data that applies to only a single selector.

Fields

Input with the matching mode we should use when matching selectors.

Input with the bloom filter used to fast-reject selectors.

An optional cache to speed up nth-index-like selectors.

Input that controls how matching for links is handled.

Output that records whether we encountered a "relevant link" while matching any selector for this element. (This differs from RelevantLinkStatus which tracks the status for the current selector only.)

Methods

impl<'a> MatchingContext<'a>
[src]

[src]

Constructs a new MatchingContext.

[src]

Constructs a new MatchingContext for use in visited matching.

[src]

The quirks mode of the document.

[src]

The case-sensitivity for class and ID selectors