| 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 bd0101d1007c5157d15e0cdc671b4cb422bc5f40..7d2182bbf022fd904072b8ea3103e3cb344b3265 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);
|
|
|