| Index: third_party/WebKit/Source/core/inspector/DevToolsHost.cpp
|
| diff --git a/third_party/WebKit/Source/core/inspector/DevToolsHost.cpp b/third_party/WebKit/Source/core/inspector/DevToolsHost.cpp
|
| index 541f0969610a83b71ddda3a467b9dd28e2912af9..7e7b0c39928b8f98f1520489c9b200571ecac805 100644
|
| --- a/third_party/WebKit/Source/core/inspector/DevToolsHost.cpp
|
| +++ b/third_party/WebKit/Source/core/inspector/DevToolsHost.cpp
|
| @@ -49,7 +49,7 @@
|
| #include "core/page/Page.h"
|
| #include "platform/ContextMenu.h"
|
| #include "platform/ContextMenuItem.h"
|
| -#include "platform/HostWindow.h"
|
| +#include "platform/PlatformChromeClient.h"
|
| #include "platform/ScriptForbiddenScope.h"
|
| #include "platform/SharedBuffer.h"
|
| #include "platform/UserGestureIndicator.h"
|
| @@ -159,8 +159,9 @@ float DevToolsHost::zoomFactor() {
|
| float zoom_factor = frontend_frame_->PageZoomFactor();
|
| // Cancel the device scale factor applied to the zoom factor in
|
| // use-zoom-for-dsf mode.
|
| - const HostWindow* host_window = frontend_frame_->View()->GetHostWindow();
|
| - float window_to_viewport_ratio = host_window->WindowToViewportScalar(1.0f);
|
| + const PlatformChromeClient* client =
|
| + frontend_frame_->View()->GetChromeClient();
|
| + float window_to_viewport_ratio = client->WindowToViewportScalar(1.0f);
|
| return zoom_factor / window_to_viewport_ratio;
|
| }
|
|
|
|
|