| Index: content/browser/renderer_host/render_widget_host_view_base.cc
|
| diff --git a/content/browser/renderer_host/render_widget_host_view_base.cc b/content/browser/renderer_host/render_widget_host_view_base.cc
|
| index 1b407058f52587a15a9f89334688bd9d445d2097..0918a083544c0eeef95c1f103cf85deaadb6c6a2 100644
|
| --- a/content/browser/renderer_host/render_widget_host_view_base.cc
|
| +++ b/content/browser/renderer_host/render_widget_host_view_base.cc
|
| @@ -29,7 +29,7 @@
|
| #include "content/public/browser/child_process_data.h"
|
| #include "content/public/common/content_switches.h"
|
| #include "ui/gfx/gdi_util.h"
|
| -#include "ui/gfx/win/dpi.h"
|
| +#include "ui/gfx/screen_win.h"
|
| #include "ui/gfx/win/hwnd_util.h"
|
| #endif
|
|
|
| @@ -149,7 +149,7 @@ BOOL CALLBACK PaintEnumChildProc(HWND hwnd, LPARAM lparam) {
|
| return TRUE;
|
|
|
| gfx::Rect* rect = reinterpret_cast<gfx::Rect*>(lparam);
|
| - gfx::Rect rect_in_pixels = gfx::win::DIPToScreenRect(*rect);
|
| + gfx::Rect rect_in_pixels = gfx::ScreenWin::DIPToScreenRect(hwnd, *rect);
|
| static UINT msg = RegisterWindowMessage(kPaintMessageName);
|
| WPARAM wparam = MAKEWPARAM(rect_in_pixels.x(), rect_in_pixels.y());
|
| lparam = MAKELPARAM(rect_in_pixels.width(), rect_in_pixels.height());
|
| @@ -263,7 +263,8 @@ void RenderWidgetHostViewBase::MovePluginWindowsHelper(
|
| #endif
|
|
|
| if (move.rects_valid) {
|
| - gfx::Rect clip_rect_in_pixel = gfx::win::DIPToScreenRect(move.clip_rect);
|
| + gfx::Rect clip_rect_in_pixel =
|
| + gfx::ScreenWin::DIPToScreenRect(window, move.clip_rect);
|
| HRGN hrgn = ::CreateRectRgn(clip_rect_in_pixel.x(),
|
| clip_rect_in_pixel.y(),
|
| clip_rect_in_pixel.right(),
|
| @@ -293,7 +294,7 @@ void RenderWidgetHostViewBase::MovePluginWindowsHelper(
|
| }
|
|
|
| gfx::Rect window_rect_in_pixel =
|
| - gfx::win::DIPToScreenRect(move.window_rect);
|
| + gfx::ScreenWin::DIPToScreenRect(window, move.window_rect);
|
| defer_window_pos_info = ::DeferWindowPos(defer_window_pos_info,
|
| window, NULL,
|
| window_rect_in_pixel.x(),
|
|
|