Index: content/browser/browser_plugin/browser_plugin_guest.cc |
diff --git a/content/browser/browser_plugin/browser_plugin_guest.cc b/content/browser/browser_plugin/browser_plugin_guest.cc |
index 844af35dad7c16e61d5aa8485a1a1bc69bd81718..f322f0cdb0ef1a150287b59f83f1b075650a1256 100644 |
--- a/content/browser/browser_plugin/browser_plugin_guest.cc |
+++ b/content/browser/browser_plugin/browser_plugin_guest.cc |
@@ -369,7 +369,7 @@ void BrowserPluginGuest::ShowWidget(RenderViewHost* render_view_host, |
int route_id, |
const gfx::Rect& initial_pos) { |
gfx::Rect screen_pos(initial_pos); |
- screen_pos.Offset(guest_rect_.origin()); |
+ screen_pos.Offset(guest_rect_.OffsetFromOrigin()); |
static_cast<WebContentsImpl*>(web_contents())->ShowCreatedWidget(route_id, |
screen_pos); |
} |