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

Unified Diff: Source/web/WebViewImpl.cpp

Issue 40423003: Experimental viewport meta tag support for desktop, Blink-side. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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 6e38c3f158cc65e6483702a47702ad27cc489fc9..edebf80bbafc71ecb03e82b6b7d94e0ac5ebd8a8 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -1692,7 +1692,10 @@ void WebViewImpl::resize(const WebSize& newSize)
m_size = newSize;
- bool shouldAnchorAndRescaleViewport = settings()->viewportEnabled() && oldSize.width && oldContentsWidth && newSize.width != oldSize.width;
+ bool shouldAnchorAndRescaleViewport =
+ settings()->viewportEnabled() && settings()->scaleViewportOnResize()
aelias_OOO_until_Jul13 2013/10/25 04:10:08 You can delete the settings()->viewportEnabled() n
bokan 2013/10/28 22:17:52 Done.
+ && oldSize.width && oldContentsWidth && newSize.width != oldSize.width;
+
ViewportAnchor viewportAnchor(&mainFrameImpl()->frame()->eventHandler());
if (shouldAnchorAndRescaleViewport) {
viewportAnchor.setAnchor(view->visibleContentRect(),

Powered by Google App Engine
This is Rietveld 408576698