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

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

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
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngineTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/FrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
index c70324735a6eefbf7e6fd53f1939c575d89d8d23..930a19fb89caf562ed187ce25eeaad1fe97bf43a 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -946,11 +946,10 @@ void FrameView::performPreLayoutTasks() {
bool mainFrameRotation =
m_frame->isMainFrame() && m_frame->settings() &&
m_frame->settings()->mainFrameResizesAreOrientationChanges();
- if (!document->styleResolver() ||
- (wasResized &&
- document->styleResolver()->mediaQueryAffectedByViewportChange()) ||
+ if ((wasResized &&
+ document->styleEngine().mediaQueryAffectedByViewportChange()) ||
(wasResized && mainFrameRotation &&
- document->styleResolver()->mediaQueryAffectedByDeviceChange())) {
+ document->styleEngine().mediaQueryAffectedByDeviceChange())) {
document->mediaQueryAffectingValueChanged();
} else if (wasResized) {
document->evaluateMediaQueryList();
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngineTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698