| Index: Source/web/WebViewImpl.cpp
|
| diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
|
| index d15aa469cd43a4e08d67c344d7b8ce0997657ee2..73e0f0661983de41cf1d72c66bf053857f96fbdb 100644
|
| --- a/Source/web/WebViewImpl.cpp
|
| +++ b/Source/web/WebViewImpl.cpp
|
| @@ -1696,7 +1696,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(),
|
|
|