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

Unified Diff: third_party/WebKit/Source/core/css/CSSStyleSheet.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/CSSStyleSheet.h
diff --git a/third_party/WebKit/Source/core/css/CSSStyleSheet.h b/third_party/WebKit/Source/core/css/CSSStyleSheet.h
index 1ad6f458e2668f216503bd018bab13f3d7b49023..af33862f869d3cd187884c64a1dec78ff792918a 100644
--- a/third_party/WebKit/Source/core/css/CSSStyleSheet.h
+++ b/third_party/WebKit/Source/core/css/CSSStyleSheet.h
@@ -24,6 +24,7 @@
#include "core/CoreExport.h"
#include "core/css/CSSRule.h"
+#include "core/css/MediaQueryEvaluator.h"
#include "core/css/StyleSheet.h"
#include "platform/heap/Handle.h"
#include "wtf/Noncopyable.h"
@@ -101,6 +102,13 @@ class CORE_EXPORT CSSStyleSheet final : public StyleSheet {
Document* ownerDocument() const;
MediaQuerySet* mediaQueries() const { return m_mediaQueries.get(); }
void setMediaQueries(MediaQuerySet*);
+ bool matchesMediaQueries(const MediaQueryEvaluator&);
+ const MediaQueryResultList& viewportDependentMediaQueryResults() const {
+ return m_viewportDependentMediaQueryResults;
+ }
+ const MediaQueryResultList& deviceDependentMediaQueryResults() const {
+ return m_deviceDependentMediaQueryResults;
+ }
void setTitle(const String& title) { m_title = title; }
// Set by LinkStyle iff CORS-enabled fetch of stylesheet succeeded from this
// origin.
@@ -157,6 +165,8 @@ class CORE_EXPORT CSSStyleSheet final : public StyleSheet {
bool m_loadCompleted = false;
String m_title;
Member<MediaQuerySet> m_mediaQueries;
+ MediaQueryResultList m_viewportDependentMediaQueryResults;
+ MediaQueryResultList m_deviceDependentMediaQueryResults;
RefPtr<SecurityOrigin> m_allowRuleAccessFromOrigin;

Powered by Google App Engine
This is Rietveld 408576698