Index: Source/web/WebViewImpl.cpp |
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp |
index 94ab8cc45b04f89c0276867bc1c142168416aa00..f3f55c8c42d7fa4e6391b5c0b90e26427444b4a2 100644 |
--- a/Source/web/WebViewImpl.cpp |
+++ b/Source/web/WebViewImpl.cpp |
@@ -1623,6 +1623,11 @@ void WebViewImpl::resize(const WebSize& newSize) |
if (pinchVirtualViewportEnabled()) |
page()->frameHost().pinchViewport().setSize(m_size); |
+ |
+ if (page()->inspectorController().deviceEmulationEnabled()) { |
+ if (Document* document = mainFrameImpl()->frame()->document()) |
+ document->mediaQueryAffectingValueChanged(); |
ojan
2014/06/10 02:38:05
I can't think of a better solution, so lgtm, but t
dgozman
2014/06/10 10:26:02
Done.
|
+ } |
} |
if (settings()->viewportEnabled() && !m_fixedLayoutSizeLock) { |