| Index: third_party/WebKit/Source/core/frame/VisualViewport.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/VisualViewport.cpp b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
|
| index d61236e70169dcb61a51dc89a9ade87c94667a65..d284fd7f4ef780feae8196d0a220d2e668a684ef 100644
|
| --- a/third_party/WebKit/Source/core/frame/VisualViewport.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
|
| @@ -241,7 +241,7 @@ double VisualViewport::clientWidth()
|
| updateStyleAndLayoutIgnorePendingStylesheets();
|
|
|
| double width = adjustScrollForAbsoluteZoom(visibleSize().width(), mainFrame()->pageZoomFactor());
|
| - return width - mainFrame()->view()->verticalScrollbarWidth();
|
| + return width - mainFrame()->view()->verticalScrollbarWidth() / m_scale;
|
| }
|
|
|
| double VisualViewport::clientHeight()
|
| @@ -252,7 +252,7 @@ double VisualViewport::clientHeight()
|
| updateStyleAndLayoutIgnorePendingStylesheets();
|
|
|
| double height = adjustScrollForAbsoluteZoom(visibleSize().height(), mainFrame()->pageZoomFactor());
|
| - return height - mainFrame()->view()->horizontalScrollbarHeight();
|
| + return height - mainFrame()->view()->horizontalScrollbarHeight() / m_scale;
|
| }
|
|
|
| double VisualViewport::pageScale()
|
|
|