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) { |