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

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: 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..2b4ba5fa89260f3b20f61246c6a863d5694f7937 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 InvalidationMode {
+ UseInvalidationSets,
+ UseLocalStyleChange,
+ UseSubtreeStyleChange
};
- void collectFeaturesFromSelector(const CSSSelector&, FeatureMetadata&, SelectorFeatureCollectionMode processClasses);
- void collectFeaturesFromSelectorList(const CSSSelectorList*, FeatureMetadata&, SelectorFeatureCollectionMode processClasses);
+ static InvalidationMode supportsClassDescendantInvalidation(const CSSSelector&);
+
+ void collectFeaturesFromSelector(const CSSSelector&, FeatureMetadata&, InvalidationMode);
+ void collectFeaturesFromSelectorList(const CSSSelectorList*, FeatureMetadata&, InvalidationMode);
DescendantInvalidationSet& ensureClassInvalidationSet(const AtomicString& className);
- bool updateClassInvalidationSets(const CSSSelector&);
+ InvalidationMode updateClassInvalidationSets(const CSSSelector&);
void addClassToInvalidationSet(const AtomicString& className, Element*);

Powered by Google App Engine
This is Rietveld 408576698