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

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

Issue 2326033002: Prepare to use invalidation set for adding/removing RuleSets. (Closed)
Patch Set: 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
Index: third_party/WebKit/Source/core/css/RuleFeature.h
diff --git a/third_party/WebKit/Source/core/css/RuleFeature.h b/third_party/WebKit/Source/core/css/RuleFeature.h
index 56bb24bf31a0026a819ee8f6a8589cfa7e825036..bc87159b6975d8b289fcbe4460a4ea9e3f709960 100644
--- a/third_party/WebKit/Source/core/css/RuleFeature.h
+++ b/third_party/WebKit/Source/core/css/RuleFeature.h
@@ -75,6 +75,7 @@ public:
bool usesSiblingRules() const { return !siblingRules.isEmpty(); }
bool usesFirstLineRules() const { return m_metadata.usesFirstLineRules; }
bool usesWindowInactiveSelector() const { return m_metadata.usesWindowInactiveSelector; }
+ bool needsFullRecalcForRuleSetInvalidation() const { return m_metadata.needsFullRecalcForRuleSetInvalidation; }
unsigned maxDirectAdjacentSelectors() const { return m_metadata.maxDirectAdjacentSelectors; }
@@ -134,6 +135,7 @@ private:
bool usesWindowInactiveSelector = false;
bool foundSiblingSelector = false;
bool foundInsertionPointCrossing = false;
+ bool needsFullRecalcForRuleSetInvalidation = false;
unsigned maxDirectAdjacentSelectors = 0;
};
@@ -168,6 +170,7 @@ private:
bool contentPseudoCrossing = false;
bool invalidatesSlotted = false;
bool hasNthPseudo = false;
+ bool hasInvalidationSetFeaturesInScope = false;
};
static void extractInvalidationSetFeature(const CSSSelector&, InvalidationSetFeatures&);

Powered by Google App Engine
This is Rietveld 408576698