Index: content/browser/renderer_host/legacy_render_widget_host_win.cc |
diff --git a/content/browser/renderer_host/legacy_render_widget_host_win.cc b/content/browser/renderer_host/legacy_render_widget_host_win.cc |
index 9e2305747a52b64b0b44c015b167f698fd2ea6df..624584c2626516fcf6476c6390ec13a1c2851d0c 100644 |
--- a/content/browser/renderer_host/legacy_render_widget_host_win.cc |
+++ b/content/browser/renderer_host/legacy_render_widget_host_win.cc |
@@ -18,8 +18,8 @@ |
#include "ui/base/win/internal_constants.h" |
#include "ui/base/win/window_event_target.h" |
#include "ui/gfx/geometry/rect.h" |
+#include "ui/gfx/screen_win.h" |
#include "ui/gfx/win/direct_manipulation.h" |
-#include "ui/gfx/win/dpi.h" |
namespace content { |
@@ -83,7 +83,7 @@ void LegacyRenderWidgetHostHWND::Hide() { |
} |
void LegacyRenderWidgetHostHWND::SetBounds(const gfx::Rect& bounds) { |
- gfx::Rect bounds_in_pixel = gfx::win::DIPToScreenRect(bounds); |
+ gfx::Rect bounds_in_pixel = gfx::ScreenWin::DIPToClientRect(hwnd(), bounds); |
::SetWindowPos(hwnd(), NULL, bounds_in_pixel.x(), bounds_in_pixel.y(), |
bounds_in_pixel.width(), bounds_in_pixel.height(), |
SWP_NOREDRAW); |