Index: content/renderer/pepper/pepper_plugin_delegate_impl.cc |
diff --git a/content/renderer/pepper/pepper_plugin_delegate_impl.cc b/content/renderer/pepper/pepper_plugin_delegate_impl.cc |
index c4d8891516f00b2b48d2c049e4dde92f9ac3c0ce..e690fb4e8e65eb9146748b80ecea1019125af30c 100644 |
--- a/content/renderer/pepper/pepper_plugin_delegate_impl.cc |
+++ b/content/renderer/pepper/pepper_plugin_delegate_impl.cc |
@@ -1279,9 +1279,10 @@ int32_t PepperPluginDelegateImpl::ShowContextMenu( |
// Transform the position to be in render view's coordinates. |
if (instance->view_data().is_fullscreen || instance->flash_fullscreen()) { |
- WebKit::WebRect rect = render_view_->windowRect(); |
- params.x -= rect.x; |
- params.y -= rect.y; |
+ WebKit::WebRect window_rect = render_view_->windowRect(); |
viettrungluu
2012/08/05 05:55:16
Are you sure this doesn't break multi-monitor full
raymes
2012/08/05 06:19:57
AFAICT this isn't currently used by anything other
|
+ WebKit::WebRect screen_rect = render_view_->screenInfo().rect; |
+ params.x = params.x - window_rect.x + screen_rect.x; |
+ params.y = params.y - window_rect.y + screen_rect.y; |
} else { |
params.x += instance->view_data().rect.point.x; |
params.y += instance->view_data().rect.point.y; |