| 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 fcd41f0ee448f6d2a92003d88712911a8cfc98ba..6e52e03595e95db99e863b607f82672597fd402c 100644
|
| --- a/content/browser/renderer_host/render_widget_host_view_base.cc
|
| +++ b/content/browser/renderer_host/render_widget_host_view_base.cc
|
| @@ -13,6 +13,7 @@
|
| #include "content/common/content_switches_internal.h"
|
| #include "content/public/browser/render_widget_host_view_frame_subscriber.h"
|
| #include "ui/gfx/display.h"
|
| +#include "ui/gfx/dpi.h"
|
| #include "ui/gfx/screen.h"
|
| #include "ui/gfx/size_conversions.h"
|
| #include "ui/gfx/size_f.h"
|
| @@ -29,7 +30,6 @@
|
| #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/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::DIPToScreenRect(*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,7 @@ 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::DIPToScreenRect(move.clip_rect);
|
| HRGN hrgn = ::CreateRectRgn(clip_rect_in_pixel.x(),
|
| clip_rect_in_pixel.y(),
|
| clip_rect_in_pixel.right(),
|
| @@ -292,8 +292,7 @@ void RenderWidgetHostViewBase::MovePluginWindowsHelper(
|
| flags |= SWP_NOSIZE;
|
| }
|
|
|
| - gfx::Rect window_rect_in_pixel =
|
| - gfx::win::DIPToScreenRect(move.window_rect);
|
| + gfx::Rect window_rect_in_pixel = gfx::DIPToScreenRect(move.window_rect);
|
| defer_window_pos_info = ::DeferWindowPos(defer_window_pos_info,
|
| window, NULL,
|
| window_rect_in_pixel.x(),
|
|
|