| Index: Source/web/WebViewImpl.cpp
|
| diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
|
| index 331ef970fec0708ee8bc5d63547a880fba2026d4..580f5f25b108c53614dee5ea4266298c8a6ebb0e 100644
|
| --- a/Source/web/WebViewImpl.cpp
|
| +++ b/Source/web/WebViewImpl.cpp
|
| @@ -1695,7 +1695,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(),
|
|
|