Index: Source/core/css/RuleFeature.cpp |
diff --git a/Source/core/css/RuleFeature.cpp b/Source/core/css/RuleFeature.cpp |
index 23e821930aa27db742e350dcc2bac6983686346a..84e130f4fae6a40e7a62d0723e2d41685e0c8751 100644 |
--- a/Source/core/css/RuleFeature.cpp |
+++ b/Source/core/css/RuleFeature.cpp |
@@ -212,9 +212,15 @@ DescendantInvalidationSet* RuleFeatureSet::invalidationSetForSelector(const CSSS |
if (selector.match() == CSSSelector::Id) |
return &ensureIdInvalidationSet(selector.value()); |
if (selector.match() == CSSSelector::PseudoClass) { |
- CSSSelector::PseudoType pseudo = selector.pseudoType(); |
- if (pseudo == CSSSelector::PseudoHover || pseudo == CSSSelector::PseudoActive || pseudo == CSSSelector::PseudoFocus) |
- return &ensurePseudoInvalidationSet(pseudo); |
+ switch (selector.pseudoType()) { |
+ case CSSSelector::PseudoEmpty: |
+ case CSSSelector::PseudoHover: |
+ case CSSSelector::PseudoActive: |
+ case CSSSelector::PseudoFocus: |
+ return &ensurePseudoInvalidationSet(selector.pseudoType()); |
+ default: |
+ break; |
+ } |
} |
return 0; |
} |