Index: Source/web/WebViewImpl.cpp |
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp |
index 16706ac9b2da5cbaaa665b26de0d00df7f2d03ab..f60a5b1cdd7fc64d02602df9729407c061e71290 100644 |
--- a/Source/web/WebViewImpl.cpp |
+++ b/Source/web/WebViewImpl.cpp |
@@ -1697,7 +1697,9 @@ void WebViewImpl::resize(const WebSize& newSize) |
m_size = newSize; |
- bool shouldAnchorAndRescaleViewport = settings()->viewportEnabled() && oldSize.width && oldContentsWidth && newSize.width != oldSize.width; |
+ bool shouldAnchorAndRescaleViewport = settings()->mainFrameResizesAreOrientationChanges() |
+ && oldSize.width && oldContentsWidth && newSize.width != oldSize.width; |
+ |
ViewportAnchor viewportAnchor(&mainFrameImpl()->frame()->eventHandler()); |
if (shouldAnchorAndRescaleViewport) { |
viewportAnchor.setAnchor(view->visibleContentRect(), |