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

Unified Diff: third_party/WebKit/Source/core/css/RuleSet.h

Issue 2326033002: Prepare to use invalidation set for adding/removing RuleSets. (Closed)
Patch Set: Rebased Created 4 years, 3 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
« no previous file with comments | « third_party/WebKit/Source/core/css/RuleFeatureSetTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/RuleSet.h
diff --git a/third_party/WebKit/Source/core/css/RuleSet.h b/third_party/WebKit/Source/core/css/RuleSet.h
index 9f310e0d7e6b004c1415db3a6372a01c27936d33..8f66de8d6f03dabf257159a4617aceaebf3ac846 100644
--- a/third_party/WebKit/Source/core/css/RuleSet.h
+++ b/third_party/WebKit/Source/core/css/RuleSet.h
@@ -170,6 +170,20 @@ public:
compactRules();
}
+ bool hasSlottedRules() const { return !m_slottedPseudoElementRules.isEmpty(); }
+
+ bool hasV0BoundaryCrossingRules() const
+ {
+ return !m_deepCombinatorOrShadowPseudoRules.isEmpty()
+ || !m_contentPseudoElementRules.isEmpty();
+ }
+
+ bool needsFullRecalcForRuleSetInvalidation() const
+ {
+ return m_features.needsFullRecalcForRuleSetInvalidation()
+ || hasV0BoundaryCrossingRules();
+ }
+
#ifndef NDEBUG
void show() const;
#endif
« no previous file with comments | « third_party/WebKit/Source/core/css/RuleFeatureSetTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698