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

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

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
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 a5ff4d6103fc340d09ff3f38eaeccc77fb560104..064b86ac78a4c128c95f7b5e1c76c75910b9e170 100644
--- a/third_party/WebKit/Source/core/css/RuleFeature.h
+++ b/third_party/WebKit/Source/core/css/RuleFeature.h
@@ -25,6 +25,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"
@@ -107,6 +108,19 @@ class CORE_EXPORT RuleFeatureSet {
return m_uncommonAttributeRules;
}
+ const MediaQueryResultList& viewportDependentMediaQueryResults() const {
+ return m_viewportDependentMediaQueryResults;
+ }
+ const MediaQueryResultList& deviceDependentMediaQueryResults() const {
+ return m_deviceDependentMediaQueryResults;
+ }
+ MediaQueryResultList& viewportDependentMediaQueryResults() {
+ return m_viewportDependentMediaQueryResults;
+ }
+ MediaQueryResultList& deviceDependentMediaQueryResults() {
+ return m_deviceDependentMediaQueryResults;
+ }
+
// Collect descendant and sibling invalidation sets.
void collectInvalidationSetsForClass(InvalidationLists&,
Element&,
@@ -274,6 +288,8 @@ class CORE_EXPORT RuleFeatureSet {
RefPtr<DescendantInvalidationSet> m_nthInvalidationSet;
HeapVector<RuleFeature> m_siblingRules;
HeapVector<RuleFeature> m_uncommonAttributeRules;
+ MediaQueryResultList m_viewportDependentMediaQueryResults;
+ MediaQueryResultList m_deviceDependentMediaQueryResults;
friend class RuleFeatureSetTest;
};
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSStyleSheet.cpp ('k') | third_party/WebKit/Source/core/css/RuleFeature.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698