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
ForStyling
Other
Trait Implementations
impl Copy for MatchingReason
[src]
impl Clone for MatchingReason
[src]
fn clone(&self) -> MatchingReason
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for MatchingReason
[src]
impl PartialEq for MatchingReason
[src]
fn eq(&self, __arg_0: &MatchingReason) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.