Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(572)

Unified Diff: Source/core/css/RuleFeature.h

Issue 199373003: Use LocalStyleChange for classes in rightmost compound selector. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Changed naming of InvalidationSetModes. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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*);
« no previous file with comments | « LayoutTests/fast/css/invalidation/no-invalidation-set-local-style-expected.txt ('k') | Source/core/css/RuleFeature.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698