selectors: Allow defining an implementation-dependent field in the matching context.

This commit is contained in:
Emilio Cobos Álvarez 2018-01-11 12:07:24 +01:00
parent 9b3fc43f5a
commit 1e27f2883b
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
6 changed files with 11 additions and 0 deletions

View file

@ -130,6 +130,9 @@ where
/// should match when matching_mode is ForStatelessPseudoElement.
pub pseudo_element_matching_fn: Option<&'a Fn(&Impl::PseudoElement) -> bool>,
/// Extra implementation-dependent matching data.
pub extra_data: Option<Impl::ExtraMatchingData>,
quirks_mode: QuirksMode,
classes_and_ids_case_sensitivity: CaseSensitivity,
_impl: ::std::marker::PhantomData<Impl>,
@ -173,6 +176,7 @@ where
scope_element: None,
nesting_level: 0,
pseudo_element_matching_fn: None,
extra_data: None,
_impl: ::std::marker::PhantomData,
}
}