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..ad5982c4b76667e5f1aa1c627efcb4a0453d0bbe 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_.DistanceFromOrigin()); |
static_cast<WebContentsImpl*>(web_contents())->ShowCreatedWidget(route_id, |
screen_pos); |
} |