Index: content/child/npapi/webplugin_delegate_impl_win.cc |
diff --git a/content/child/npapi/webplugin_delegate_impl_win.cc b/content/child/npapi/webplugin_delegate_impl_win.cc |
index 5cd6e5c09ccbd49edc0d9780109a338fed89612b..15b9bc1cd4050a33e1fc9d6291ef85641e67a986 100644 |
--- a/content/child/npapi/webplugin_delegate_impl_win.cc |
+++ b/content/child/npapi/webplugin_delegate_impl_win.cc |
@@ -34,7 +34,7 @@ |
#include "content/public/common/content_constants.h" |
#include "skia/ext/platform_canvas.h" |
#include "third_party/WebKit/public/web/WebInputEvent.h" |
-#include "ui/gfx/win/dpi.h" |
+#include "ui/gfx/screen_win.h" |
#include "ui/gfx/win/hwnd_util.h" |
using blink::WebKeyboardEvent; |
@@ -763,8 +763,10 @@ bool WebPluginDelegateImpl::WindowedReposition( |
return false; |
} |
- gfx::Rect window_rect = gfx::win::DIPToScreenRect(window_rect_in_dip); |
- gfx::Rect clip_rect = gfx::win::DIPToScreenRect(clip_rect_in_dip); |
+ gfx::Rect window_rect = gfx::ScreenWin::DIPToScreenRect(windowed_handle_, |
+ window_rect_in_dip); |
+ gfx::Rect clip_rect = gfx::ScreenWin::DIPToScreenRect(windowed_handle_, |
+ clip_rect_in_dip); |
if (window_rect_ == window_rect && clip_rect_ == clip_rect) |
return false; |