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

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

Issue 2528633003: Move MediaQueryResults to RuleFeatureSet. (Closed)
Patch Set: Removed members. Created 4 years, 1 month 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/RuleFeature.h ('k') | third_party/WebKit/Source/core/css/RuleSet.h » ('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.cpp
diff --git a/third_party/WebKit/Source/core/css/RuleFeature.cpp b/third_party/WebKit/Source/core/css/RuleFeature.cpp
index 24cd84081fa796f8e6b274db9eeaaefae483321d..d50f6bf02c016ae5d2a0f60eee9f337ef30ea3d2 100644
--- a/third_party/WebKit/Source/core/css/RuleFeature.cpp
+++ b/third_party/WebKit/Source/core/css/RuleFeature.cpp
@@ -909,6 +909,10 @@ void RuleFeatureSet::add(const RuleFeatureSet& other) {
m_siblingRules.appendVector(other.m_siblingRules);
m_uncommonAttributeRules.appendVector(other.m_uncommonAttributeRules);
+ m_viewportDependentMediaQueryResults.appendVector(
+ other.m_viewportDependentMediaQueryResults);
+ m_deviceDependentMediaQueryResults.appendVector(
+ other.m_deviceDependentMediaQueryResults);
}
void RuleFeatureSet::clear() {
@@ -921,6 +925,8 @@ void RuleFeatureSet::clear() {
m_pseudoInvalidationSets.clear();
m_universalSiblingInvalidationSet.clear();
m_nthInvalidationSet.clear();
+ m_viewportDependentMediaQueryResults.clear();
+ m_deviceDependentMediaQueryResults.clear();
}
void RuleFeatureSet::collectInvalidationSetsForClass(
@@ -1140,6 +1146,8 @@ void RuleFeatureSet::addFeaturesToUniversalSiblingInvalidationSet(
DEFINE_TRACE(RuleFeatureSet) {
visitor->trace(m_siblingRules);
visitor->trace(m_uncommonAttributeRules);
+ visitor->trace(m_viewportDependentMediaQueryResults);
+ visitor->trace(m_deviceDependentMediaQueryResults);
}
void RuleFeatureSet::InvalidationSetFeatures::add(
« no previous file with comments | « third_party/WebKit/Source/core/css/RuleFeature.h ('k') | third_party/WebKit/Source/core/css/RuleSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698