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

Unified Diff: third_party/WebKit/Source/core/dom/StyleEngine.h

Issue 2521063005: Move MediaQueryEvaluator from StyleResolver to StyleEngine. (Closed)
Patch Set: Rebased 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/dom/StyleEngine.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 208b0aa8d65d0fc8af37d73974c623e8f24cbd39..17ac39f66d35eae3b1083fa22be7fadd470dd3d4 100644
--- a/third_party/WebKit/Source/core/dom/StyleEngine.h
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.h
@@ -55,6 +55,7 @@ namespace blink {
class CSSFontSelector;
class CSSStyleSheet;
+class MediaQueryEvaluator;
class Node;
class RuleFeatureSet;
class ShadowTreeStyleSheetCollection;
@@ -117,7 +118,7 @@ class CORE_EXPORT StyleEngine final
return m_globalRuleSet.watchedSelectorsRuleSet();
}
- void clearMediaQueryRuleSetStyleSheets();
+ void mediaQueryAffectingValueChanged();
void updateStyleSheetsInImport(DocumentStyleSheetCollector& parentCollector);
void updateActiveStyleSheets(StyleResolverUpdateMode);
void updateActiveStyle();
@@ -196,6 +197,7 @@ class CORE_EXPORT StyleEngine final
void clearMasterResolver();
StyleInvalidator& styleInvalidator() { return m_styleInvalidator; }
+ const MediaQueryEvaluator& ensureMediaQueryEvaluator();
CSSFontSelector* fontSelector() { return m_fontSelector; }
void setFontSelector(CSSFontSelector*);
@@ -279,7 +281,7 @@ class CORE_EXPORT StyleEngine final
typedef HeapHashSet<Member<TreeScope>> UnorderedTreeScopeSet;
- void clearMediaQueryRuleSetOnTreeScopeStyleSheets(UnorderedTreeScopeSet&);
+ void mediaQueryAffectingValueChanged(UnorderedTreeScopeSet&);
const RuleFeatureSet& ruleFeatureSet() const {
return m_globalRuleSet.ruleFeatureSet();
}
@@ -355,6 +357,7 @@ class CORE_EXPORT StyleEngine final
Member<StyleResolver> m_resolver;
Member<ViewportStyleResolver> m_viewportResolver;
+ Member<MediaQueryEvaluator> m_mediaQueryEvaluator;
StyleInvalidator m_styleInvalidator;
Member<CSSFontSelector> m_fontSelector;
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.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