| Index: Source/web/WebViewImpl.cpp
|
| diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
|
| index 875c6cf7532ce85d3f1759f72fb65e60eae3792b..077464275aec7d29659fc5407c86c16fd6807785 100644
|
| --- a/Source/web/WebViewImpl.cpp
|
| +++ b/Source/web/WebViewImpl.cpp
|
| @@ -1829,8 +1829,8 @@ void WebViewImpl::didUpdateTopControls()
|
| if (settings() && settings()->mainFrameResizesAreOrientationChanges()) {
|
| // Shrink the FrameView by the amount that will maintain the aspect-ratio with the PinchViewport.
|
| float aspectRatio = pinchViewport.visibleRect().width() / pinchViewport.visibleRect().height();
|
| - float newHeight = view->unscaledVisibleContentSize(ExcludeScrollbars).width() / aspectRatio;
|
| - float adjustment = newHeight - view->unscaledVisibleContentSize(ExcludeScrollbars).height();
|
| + float newHeight = view->visibleContentSize(ExcludeScrollbars).width() / aspectRatio;
|
| + float adjustment = newHeight - view->visibleContentSize(ExcludeScrollbars).height();
|
| view->setTopControlsViewportAdjustment(adjustment);
|
| }
|
| }
|
|
|