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

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

Issue 1913833002: Current work-in-progress crbug.com/567021 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More assert fixes Created 4 years, 7 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 4ddb1b69e050c43acf6491e79e45040f91edebd2..980ab6d9dbedd1ac97513ec04e157610bdaa759d 100644
--- a/third_party/WebKit/Source/core/css/RuleFeature.h
+++ b/third_party/WebKit/Source/core/css/RuleFeature.h
@@ -24,6 +24,7 @@
#include "core/CoreExport.h"
#include "core/css/CSSSelector.h"
+#include "core/css/MediaQueryEvaluator.h"
#include "core/css/invalidation/InvalidationSet.h"
#include "platform/heap/Handle.h"
#include "wtf/Forward.h"
@@ -75,6 +76,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; }
@@ -107,6 +109,8 @@ public:
HeapVector<RuleFeature> siblingRules;
HeapVector<RuleFeature> uncommonAttributeRules;
+ MediaQueryResultList viewportDependentMediaQueryResults;
+ MediaQueryResultList deviceDependentMediaQueryResults;
protected:
InvalidationSet* invalidationSetForSelector(const CSSSelector&, InvalidationType);
@@ -126,6 +130,7 @@ private:
bool usesWindowInactiveSelector = false;
bool foundSiblingSelector = false;
bool foundInsertionPointCrossing = false;
+ bool needsFullRecalcForRuleSetInvalidation = false;
unsigned maxDirectAdjacentSelectors = 0;
};
@@ -155,6 +160,7 @@ private:
bool forceSubtree = false;
bool contentPseudoCrossing = false;
bool invalidatesSlotted = false;
+ bool containsIdClassAttributeOrTypeInScope = false;
};
static bool extractInvalidationSetFeature(const CSSSelector&, InvalidationSetFeatures&);

Powered by Google App Engine
This is Rietveld 408576698