mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
style: Allow storing a DocumentState for invalidation.
This commit is contained in:
parent
1e27f2883b
commit
cb1a951477
2 changed files with 26 additions and 6 deletions
|
@ -277,8 +277,15 @@ impl NonTSPseudoClass {
|
|||
#[derive(Clone, Debug, Eq, PartialEq)]
|
||||
pub struct SelectorImpl;
|
||||
|
||||
/// A struct holding the members necessary to invalidate document state
|
||||
/// selectors.
|
||||
pub struct InvalidationMatchingData {
|
||||
/// The document state that has changed, which makes it always match.
|
||||
pub document_state: DocumentState,
|
||||
}
|
||||
|
||||
impl ::selectors::SelectorImpl for SelectorImpl {
|
||||
type ExtraMatchingData = ();
|
||||
type ExtraMatchingData = InvalidationMatchingData;
|
||||
type AttrValue = Atom;
|
||||
type Identifier = Atom;
|
||||
type ClassName = Atom;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue