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) { |