Enum selectors::matching::MatchingReason [] [src]

pub enum MatchingReason {
    ForStyling,
    Other,
}

The reason why we're doing selector matching.

If this is for styling, this will include the flags in the parent element.

This is done because Servo doesn't need those flags at all when it's not styling (e.g., when you're doing document.querySelector). For example, a slow selector in an API like querySelector doesn't imply that the parent could match it.

Variants

Trait Implementations

impl Copy for MatchingReason
[src]

impl Clone for MatchingReason
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for MatchingReason
[src]

Formats the value using the given formatter.

impl PartialEq for MatchingReason
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for MatchingReason
[src]