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

Unified Diff: third_party/WebKit/Source/core/css/RuleFeature.cpp

Issue 2699883002: Add type selector invalidation set for ruleset invalidations. (Closed)
Patch Set: Created 3 years, 10 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: third_party/WebKit/Source/core/css/RuleFeature.cpp
diff --git a/third_party/WebKit/Source/core/css/RuleFeature.cpp b/third_party/WebKit/Source/core/css/RuleFeature.cpp
index 31227852af3a4d175212a7e44d971750f30ffc63..08019325975e25d31b277e4d5add573c176e9c9f 100644
--- a/third_party/WebKit/Source/core/css/RuleFeature.cpp
+++ b/third_party/WebKit/Source/core/css/RuleFeature.cpp
@@ -1128,6 +1128,22 @@ DescendantInvalidationSet& RuleFeatureSet::ensureNthInvalidationSet() {
return *m_nthInvalidationSet;
}
+void RuleFeatureSet::collectTypeRuleInvalidationSet(
+ InvalidationLists& invalidationLists,
+ ContainerNode& rootNode) const {
+ if (m_typeRuleInvalidationSet) {
+ invalidationLists.descendants.push_back(m_typeRuleInvalidationSet);
+ TRACE_SCHEDULE_STYLE_INVALIDATION(rootNode, *m_typeRuleInvalidationSet,
+ ruleSetInvalidation);
+ }
+}
+
+DescendantInvalidationSet& RuleFeatureSet::ensureTypeRuleInvalidationSet() {
+ if (!m_typeRuleInvalidationSet)
+ m_typeRuleInvalidationSet = DescendantInvalidationSet::create();
+ return *m_typeRuleInvalidationSet;
+}
+
void RuleFeatureSet::addFeaturesToUniversalSiblingInvalidationSet(
const InvalidationSetFeatures& siblingFeatures,
const InvalidationSetFeatures& descendantFeatures) {
« no previous file with comments | « third_party/WebKit/Source/core/css/RuleFeature.h ('k') | third_party/WebKit/Source/core/css/invalidation/StyleInvalidator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698