mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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")]
|
#[cfg(feature = "gecko")]
|
||||||
NonTSPseudoClass::MozAny(ref selectors) => {
|
NonTSPseudoClass::MozAny(ref selectors) => {
|
||||||
use selectors::matching::matches_complex_selector;
|
use selectors::matching::matches_complex_selector;
|
||||||
// FIXME(emilio): nesting_level!
|
context.nesting_level += 1;
|
||||||
return selectors.iter().any(|s| {
|
let result = selectors.iter().any(|s| {
|
||||||
matches_complex_selector(s.iter(), self, context, _setter)
|
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
|
// :dir is implemented in terms of state flags, but which state flag
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue