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

Unified Diff: third_party/WebKit/Source/core/css/RuleFeature.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 | « no previous file | third_party/WebKit/Source/core/css/RuleFeature.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a2e5ae91fe7fc86f1a8a0947e278d037f621a545..db0d41c193b7b83f4176261daaf75456f2900062 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;
};
@@ -154,6 +156,7 @@ private:
void add(const InvalidationSetFeatures& other);
bool hasFeatures() const;
+ bool hasTagIdClassOrAttribute() const;
Vector<AtomicString> classes;
Vector<AtomicString> attributes;
@@ -168,6 +171,7 @@ private:
bool contentPseudoCrossing = false;
bool invalidatesSlotted = false;
bool hasNthPseudo = false;
+ bool hasFeaturesForRuleSetInvalidation = false;
};
static void extractInvalidationSetFeature(const CSSSelector&, InvalidationSetFeatures&);
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/RuleFeature.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698