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

Unified Diff: Source/web/WebViewImpl.cpp

Issue 911083002: Carry out a resize even if no layout has been performed. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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 82a88ec00e70cee7c3f2b26c11940898042af41f..f08f02e9274ef3f148e922f1016c4265f0b25195 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -1822,7 +1822,7 @@ void WebViewImpl::resize(const WebSize& newSize)
FloatPoint viewportOffsetBeforeResize = pinchViewport.visibleRectInDocument().location();
// Relayout immediately to recalculate the minimum scale limit.
- if (view->needsLayout())
+ if (view->needsLayout() || (page()->settings().forceZeroLayoutHeight() && pinchVirtualViewportEnabled()))
hush (inactive) 2015/02/10 18:21:04 I think the initial purpose for forceZeroLayoutHei
aelias_OOO_until_Jul13 2015/02/10 21:16:57 No, the initial purpose is to avoid weird layout i
view->layout();
if (shouldAnchorAndRescaleViewport) {
« 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