Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(448)

Unified Diff: third_party/WebKit/Source/core/html/ImageDocument.cpp

Issue 2824753005: Rename HostWindow to PlatformChromeClient (Closed)
Patch Set: mac Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 =
« no previous file with comments | « third_party/WebKit/Source/core/frame/VisualViewport.cpp ('k') | third_party/WebKit/Source/core/input/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698