| Index: content/renderer/pepper_plugin_delegate_impl.cc
|
| diff --git a/content/renderer/pepper_plugin_delegate_impl.cc b/content/renderer/pepper_plugin_delegate_impl.cc
|
| index 40e3f1b6d4a6a7b8fea0a4b695f7ce2bb1bf8e7c..7f16bda56bf5d96aadc2c1cd9192dc75ea1c8b83 100644
|
| --- a/content/renderer/pepper_plugin_delegate_impl.cc
|
| +++ b/content/renderer/pepper_plugin_delegate_impl.cc
|
| @@ -1813,14 +1813,14 @@ int32_t PepperPluginDelegateImpl::ShowContextMenu(
|
| params.custom_items = menu->menu_data();
|
|
|
| // Transform the position to be in render view's coordinates.
|
| - if (instance->IsFullscreen(instance->pp_instance()) ||
|
| + if (instance->view_data().is_fullscreen ||
|
| instance->FlashIsFullscreen(instance->pp_instance())) {
|
| WebKit::WebRect rect = render_view_->windowRect();
|
| params.x -= rect.x;
|
| params.y -= rect.y;
|
| } else {
|
| - params.x += instance->position().x();
|
| - params.y += instance->position().y();
|
| + params.x += instance->view_data().rect.point.x;
|
| + params.y += instance->view_data().rect.point.y;
|
| }
|
|
|
| IPC::Message* msg = new ViewHostMsg_ContextMenu(render_view_->routing_id(),
|
|
|