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

Unified Diff: Source/web/WebViewImpl.cpp

Issue 308003007: [DevTools] Update media queries when resizing with emulation on. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: With test Created 6 years, 7 months 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
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) {

Powered by Google App Engine
This is Rietveld 408576698