Index: Source/core/css/RuleFeature.h |
diff --git a/Source/core/css/RuleFeature.h b/Source/core/css/RuleFeature.h |
index c26efb6c89d376d38cac44876a10789b13b9c0c4..bcc597ea0be0212f22988287057f2c9dca48953c 100644 |
--- a/Source/core/css/RuleFeature.h |
+++ b/Source/core/css/RuleFeature.h |
@@ -120,16 +120,19 @@ private: |
HashSet<AtomicString> attrsInRules; |
}; |
- enum SelectorFeatureCollectionMode { |
- ProcessClasses, |
- DontProcessClasses |
+ enum InvalidationSetMode { |
+ AddFeatures, |
+ UseLocalStyleChange, |
+ UseSubtreeStyleChange |
}; |
- void collectFeaturesFromSelector(const CSSSelector&, FeatureMetadata&, SelectorFeatureCollectionMode processClasses); |
- void collectFeaturesFromSelectorList(const CSSSelectorList*, FeatureMetadata&, SelectorFeatureCollectionMode processClasses); |
+ static InvalidationSetMode supportsClassDescendantInvalidation(const CSSSelector&); |
+ |
+ void collectFeaturesFromSelector(const CSSSelector&, FeatureMetadata&, InvalidationSetMode); |
+ void collectFeaturesFromSelectorList(const CSSSelectorList*, FeatureMetadata&, InvalidationSetMode); |
DescendantInvalidationSet& ensureClassInvalidationSet(const AtomicString& className); |
- bool updateClassInvalidationSets(const CSSSelector&); |
+ InvalidationSetMode updateClassInvalidationSets(const CSSSelector&); |
void addClassToInvalidationSet(const AtomicString& className, Element*); |