style: Properly use nesting_level in the invalidation code.

This commit is contained in:
Emilio Cobos Álvarez 2017-10-14 13:18:06 +02:00
parent 11485edc9e
commit dcb8c2fdc7
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -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