mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
selectors: Allow defining an implementation-dependent field in the matching context.
This commit is contained in:
parent
9b3fc43f5a
commit
1e27f2883b
6 changed files with 11 additions and 0 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue