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; |
}; |