style: Fix dynamic changes of attributes when combined with :not.

This commit is contained in:
Emilio Cobos Álvarez 2017-04-12 12:45:41 +08:00
parent 8298ee75c7
commit 568fa4cc0d
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
7 changed files with 116 additions and 33 deletions

View file

@ -184,6 +184,9 @@ impl<Impl: SelectorImpl> SelectorMethods for SimpleSelector<Impl> {
where V: SelectorVisitor<Impl = Impl>,
{
use self::SimpleSelector::*;
if !visitor.visit_simple_selector(self) {
return false;
}
match *self {
Negation(ref negated) => {