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 |