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/resolver/StyleResolver.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 | « no previous file | third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/resolver/StyleResolver.h
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleResolver.h b/third_party/WebKit/Source/core/css/resolver/StyleResolver.h
index bb317bc1703e9cf234a716dc8c7cc35fdc62e04b..50e563e4cc2532eacfeafd4f2eccff99e8b5ed3c 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleResolver.h
+++ b/third_party/WebKit/Source/core/css/resolver/StyleResolver.h
@@ -176,9 +176,10 @@ class CORE_EXPORT StyleResolver final
PseudoElement* createPseudoElementIfNeeded(Element& parent, PseudoId);
- DECLARE_TRACE();
-
void setRuleUsageTracker(StyleRuleUsageTracker*);
+ void updateMediaType();
+
+ DECLARE_TRACE();
private:
explicit StyleResolver(Document&);
@@ -323,13 +324,12 @@ class CORE_EXPORT StyleResolver final
PseudoElement* createPseudoElement(Element* parent, PseudoId);
- Document& document() { return *m_document; }
+ Document& document() const { return *m_document; }
static ComputedStyle* s_styleNotYetAvailable;
MatchedPropertiesCache m_matchedPropertiesCache;
- Member<MediaQueryEvaluator> m_medium;
MediaQueryResultList m_viewportDependentMediaQueryResults;
MediaQueryResultList m_deviceDependentMediaQueryResults;
@@ -340,9 +340,9 @@ class CORE_EXPORT StyleResolver final
Member<StyleRuleUsageTracker> m_tracker;
- bool m_printMediaType;
+ bool m_printMediaType = false;
- unsigned m_styleSharingDepth;
+ unsigned m_styleSharingDepth = 0;
HeapVector<Member<StyleSharingList>, styleSharingMaxDepth>
m_styleSharingLists;
};
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698