mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Properly use nesting_level in the invalidation code.
This commit is contained in:
parent
11485edc9e
commit
dcb8c2fdc7
1 changed files with 5 additions and 3 deletions
|
@ -165,10 +165,12 @@ impl<'a, E> Element for ElementWrapper<'a, E>
|
|||
#[cfg(feature = "gecko")]
|
||||
NonTSPseudoClass::MozAny(ref selectors) => {
|
||||
use selectors::matching::matches_complex_selector;
|
||||
// FIXME(emilio): nesting_level!
|
||||
return selectors.iter().any(|s| {
|
||||
context.nesting_level += 1;
|
||||
let result = selectors.iter().any(|s| {
|
||||
matches_complex_selector(s.iter(), self, context, _setter)
|
||||
})
|
||||
});
|
||||
context.nesting_level -= 1;
|
||||
return result
|
||||
}
|
||||
|
||||
// :dir is implemented in terms of state flags, but which state flag
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue