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

Unified Diff: third_party/WebKit/Source/core/dom/StyleEngine.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/dom/StyleEngine.h
diff --git a/third_party/WebKit/Source/core/dom/StyleEngine.h b/third_party/WebKit/Source/core/dom/StyleEngine.h
index 17ac39f66d35eae3b1083fa22be7fadd470dd3d4..15fa1df155dfbd0ad6da0094cd459b9dd45ead9f 100644
--- a/third_party/WebKit/Source/core/dom/StyleEngine.h
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.h
@@ -118,6 +118,7 @@ class CORE_EXPORT StyleEngine final
return m_globalRuleSet.watchedSelectorsRuleSet();
}
+ RuleSet* ruleSetForSheet(CSSStyleSheet&);
void mediaQueryAffectingValueChanged();
void updateStyleSheetsInImport(DocumentStyleSheetCollector& parentCollector);
void updateActiveStyleSheets(StyleResolverUpdateMode);
@@ -197,7 +198,13 @@ class CORE_EXPORT StyleEngine final
void clearMasterResolver();
StyleInvalidator& styleInvalidator() { return m_styleInvalidator; }
- const MediaQueryEvaluator& ensureMediaQueryEvaluator();
+ bool mediaQueryAffectedByViewportChange();
+ bool mediaQueryAffectedByDeviceChange();
+ bool hasViewportDependentMediaQueries() const {
+ return !m_globalRuleSet.ruleFeatureSet()
+ .viewportDependentMediaQueryResults()
+ .isEmpty();
+ }
CSSFontSelector* fontSelector() { return m_fontSelector; }
void setFontSelector(CSSFontSelector*);
@@ -317,6 +324,7 @@ class CORE_EXPORT StyleEngine final
void updateViewport();
void updateActiveStyleSheets();
+ const MediaQueryEvaluator& ensureMediaQueryEvaluator();
Member<Document> m_document;
bool m_isMaster;
« no previous file with comments | « third_party/WebKit/Source/core/css/resolver/StyleResolver.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