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

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

Issue 2829873002: Collect media query results for non-matching stylesheets. (Closed)
Patch Set: Created 3 years, 8 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/CSSStyleSheet.h
diff --git a/third_party/WebKit/Source/core/css/CSSStyleSheet.h b/third_party/WebKit/Source/core/css/CSSStyleSheet.h
index 9181e7c715357f9184becc502e2b4c8856ff79d3..458632c2256bdfcb79c6bed8c5575a9637ce2a0c 100644
--- a/third_party/WebKit/Source/core/css/CSSStyleSheet.h
+++ b/third_party/WebKit/Source/core/css/CSSStyleSheet.h
@@ -103,6 +103,10 @@ class CORE_EXPORT CSSStyleSheet final : public StyleSheet {
const MediaQuerySet* MediaQueries() const { return media_queries_; }
void SetMediaQueries(MediaQuerySet*);
bool MatchesMediaQueries(const MediaQueryEvaluator&);
+ bool HasMediaQueryResults() const {
+ return !viewport_dependent_media_query_results_.IsEmpty() ||
+ !device_dependent_media_query_results_.IsEmpty();
+ }
const MediaQueryResultList& ViewportDependentMediaQueryResults() const {
return viewport_dependent_media_query_results_;
}
« no previous file with comments | « third_party/WebKit/Source/core/css/ActiveStyleSheetsTest.cpp ('k') | third_party/WebKit/Source/core/dom/StyleEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698