| Index: third_party/WebKit/Source/core/html/ImageDocument.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/ImageDocument.cpp b/third_party/WebKit/Source/core/html/ImageDocument.cpp
|
| index 742b68e69771d5f5b3fe6392e7aa96c9381aa4cb..f9a12ad692dbb2bbb171b84ba7000c8a0112fc09 100644
|
| --- a/third_party/WebKit/Source/core/html/ImageDocument.cpp
|
| +++ b/third_party/WebKit/Source/core/html/ImageDocument.cpp
|
| @@ -50,7 +50,7 @@
|
| #include "core/loader/FrameLoader.h"
|
| #include "core/loader/resource/ImageResource.h"
|
| #include "core/page/Page.h"
|
| -#include "platform/HostWindow.h"
|
| +#include "platform/PlatformChromeClient.h"
|
| #include "platform/wtf/text/StringBuilder.h"
|
|
|
| namespace {
|
| @@ -313,7 +313,7 @@ float ImageDocument::Scale() const {
|
| // We want to pretend the viewport is larger when the user has zoomed the
|
| // page in (but not when the zoom is coming from device scale).
|
| const float manual_zoom =
|
| - zoom / view->GetHostWindow()->WindowToViewportScalar(1.f);
|
| + zoom / view->GetChromeClient()->WindowToViewportScalar(1.f);
|
| float width_scale =
|
| view->Width() * manual_zoom / image_size.Width().ToFloat();
|
| float height_scale =
|
|
|