Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5102)

Unified Diff: chrome/renderer/plugins/chrome_plugin_placeholder.cc

Issue 2782893002: WebMouseEvent coordinates are now fractional & private (Closed)
Patch Set: Rebased, fixed a comment in web_input_event_builders_mac.mm Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/plugins/chrome_plugin_placeholder.cc
diff --git a/chrome/renderer/plugins/chrome_plugin_placeholder.cc b/chrome/renderer/plugins/chrome_plugin_placeholder.cc
index 45bebb3a223a39249e322c29d28da899c55adbbe..5fd6df10eab3c61864e9840a5a889ff6ca6131b9 100644
--- a/chrome/renderer/plugins/chrome_plugin_placeholder.cc
+++ b/chrome/renderer/plugins/chrome_plugin_placeholder.cc
@@ -330,7 +330,7 @@ void ChromePluginPlaceholder::ShowContextMenu(
hide_item.label = l10n_util::GetStringUTF16(IDS_CONTENT_CONTEXT_PLUGIN_HIDE);
params.custom_items.push_back(hide_item);
- blink::WebPoint point(event.x, event.y);
+ blink::WebPoint point(event.positionInWidget().x, event.positionInWidget().y);
if (plugin() && plugin()->container())
point = plugin()->container()->localToRootFramePoint(point);

Powered by Google App Engine
This is Rietveld 408576698