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

Unified Diff: content/renderer/render_view_impl.cc

Issue 2370523002: Fix drop event location being incorrect at hidpi. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index f06587d3fca12e18cef38ed4d0044236330bba09..098181d0791e4d830b33970ba2030e6f22389e90 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -2306,7 +2306,8 @@ void RenderViewImpl::OnDragTargetDrop(const DropData& drop_data,
const gfx::Point& client_point,
const gfx::Point& screen_point,
int key_modifiers) {
- webview()->dragTargetDrop(DropDataToWebDragData(drop_data), client_point,
+ webview()->dragTargetDrop(DropDataToWebDragData(drop_data),
+ ConvertWindowPointToViewport(client_point),
screen_point, key_modifiers);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698