| Index: third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
| index 056362260533c491691cc4e6dfb79a8d2f6bd00b..f74e510e3e503caffd2cb14f6bb1752c144fd041 100644
|
| --- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
| @@ -48,6 +48,7 @@
|
| #include "core/frame/FrameView.h"
|
| #include "core/frame/LocalDOMWindow.h"
|
| #include "core/frame/Settings.h"
|
| +#include "core/frame/VisualViewport.h"
|
| #include "core/html/HTMLFrameElementBase.h"
|
| #include "core/html/HTMLPlugInElement.h"
|
| #include "core/input/EventHandler.h"
|
| @@ -109,12 +110,13 @@ public:
|
| {
|
| // TODO(oshima): Remove this when all platforms are migrated to use-zoom-for-dsf.
|
| float deviceScaleFactor = m_localFrame->host()->deviceScaleFactorDeprecated();
|
| - m_bounds.setWidth(m_bounds.width() * deviceScaleFactor);
|
| - m_bounds.setHeight(m_bounds.height() * deviceScaleFactor);
|
| + float pageScaleFactor = m_localFrame->host()->visualViewport().scale();
|
| + m_bounds.setWidth(m_bounds.width() * deviceScaleFactor * pageScaleFactor);
|
| + m_bounds.setHeight(m_bounds.height() * deviceScaleFactor * pageScaleFactor);
|
| m_pictureBuilder = wrapUnique(new SkPictureBuilder(SkRect::MakeIWH(m_bounds.width(), m_bounds.height())));
|
|
|
| AffineTransform transform;
|
| - transform.scale(deviceScaleFactor, deviceScaleFactor);
|
| + transform.scale(deviceScaleFactor * pageScaleFactor, deviceScaleFactor * pageScaleFactor);
|
| transform.translate(-m_bounds.x(), -m_bounds.y());
|
| context().getPaintController().createAndAppend<BeginTransformDisplayItem>(*m_pictureBuilder, transform);
|
| }
|
|
|