| 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 d4d4f14d881c1e6f02b7efe8578dc5bbd3785819..c8af73bf03c9f3a3087b7c325ab94b4f62d55042 100644
|
| --- a/content/browser/browser_plugin/browser_plugin_guest.cc
|
| +++ b/content/browser/browser_plugin/browser_plugin_guest.cc
|
| @@ -363,6 +363,11 @@ void BrowserPluginGuest::InitInternal(
|
| GetWebContents()->GetRenderViewHost()->GetWebkitPreferences();
|
| prefs.navigate_on_drag_drop = false;
|
| GetWebContents()->GetRenderViewHost()->UpdateWebkitPreferences(prefs);
|
| +
|
| + if (auto* owner_rwhv = GetOwnerRenderWidgetHostView()) {
|
| + guest_window_rect_.set_origin(owner_rwhv->TransformPointToRootCoordSpace(
|
| + guest_window_rect_.origin()));
|
| + }
|
| }
|
|
|
| BrowserPluginGuest::~BrowserPluginGuest() {
|
| @@ -1002,6 +1007,11 @@ void BrowserPluginGuest::OnUpdateGeometry(int browser_plugin_instance_id,
|
| // The plugin has moved within the embedder without resizing or the
|
| // embedder/container's view rect changing.
|
| guest_window_rect_ = view_rect;
|
| + if (auto* rwhv = GetOwnerRenderWidgetHostView()) {
|
| + guest_window_rect_.set_origin(
|
| + rwhv->TransformPointToRootCoordSpace(guest_window_rect_.origin()));
|
| + }
|
| +
|
| GetWebContents()->SendScreenRects();
|
| }
|
|
|
|
|