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(); |