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

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: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index 02f3e15eae35cc7fb3f648598f313663cb012b3a..6eb2a90527e8168d66ec8336fc6f94ae7b7154e9 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -1619,6 +1619,9 @@ void WebViewImpl::resize(const WebSize& newSize)
if (pinchVirtualViewportEnabled())
page()->frameHost().pinchViewport().setSize(m_size);
+
+ if (page()->inspectorController().deviceEmulationEnabled() && mainFrameImpl()->frame()->document())
apavlov 2014/05/30 14:13:53 Not sure if it is worth it, but in our instrumenta
ojan 2014/05/31 05:32:39 +1. We don't have an official style rule around th
dgozman 2014/06/03 12:09:15 Done.
+ mainFrameImpl()->frame()->document()->mediaQueryAffectingValueChanged();
}
if (settings()->viewportEnabled() && !m_fixedLayoutSizeLock) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698