@@ -7,8 +7,9 @@ use super::{
77use html5ever:: { local_name, namespace_url, ns, Namespace , QualName } ;
88use selectors:: {
99 attr:: { AttrSelectorOperation , CaseSensitivity , NamespaceConstraint } ,
10- context:: QuirksMode ,
11- matching, NthIndexCache , OpaqueElement ,
10+ bloom:: BloomFilter ,
11+ context:: { QuirksMode , SelectorCaches } ,
12+ matching, OpaqueElement ,
1213} ;
1314use std:: cmp:: Ordering ;
1415
@@ -92,14 +93,14 @@ impl<'a> Element<'a> {
9293 }
9394 }
9495 }
95- pub ( crate ) fn matches ( & self , selector : & Selector , cache : & mut NthIndexCache ) -> bool {
96+ pub ( crate ) fn matches ( & self , selector : & Selector , cache : & mut SelectorCaches ) -> bool {
9697 let mut context = matching:: MatchingContext :: new (
9798 matching:: MatchingMode :: Normal ,
9899 None ,
99100 cache,
100101 QuirksMode :: NoQuirks ,
101102 matching:: NeedsSelectorFlags :: No ,
102- matching:: IgnoreNthChildForInvalidation :: No ,
103+ matching:: MatchingForInvalidation :: No ,
103104 ) ;
104105 matching:: matches_selector ( selector, 0 , None , self , & mut context)
105106 }
@@ -292,4 +293,10 @@ impl selectors::Element for Element<'_> {
292293 }
293294
294295 fn apply_selector_flags ( & self , _: matching:: ElementSelectorFlags ) { }
296+ fn add_element_unique_hashes ( & self , _: & mut BloomFilter ) -> bool {
297+ false
298+ }
299+ fn has_custom_state ( & self , _name : & LocalName ) -> bool {
300+ false
301+ }
295302}
0 commit comments