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

Unified Diff: content/renderer/render_view_impl.cc

Issue 1740193002: Fix the coordinates for touch selection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « content/renderer/render_frame_impl.cc ('k') | content/test/data/touch_selection.html » ('j') | 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 3f7c05a8bb21ae39e8c5d897bd46afed27f941f2..13c662a128c90055510e756ad332cf955c6ebb79 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -1470,8 +1470,8 @@ void RenderViewImpl::OnMoveCaret(const gfx::Point& point) {
return;
Send(new InputHostMsg_MoveCaret_ACK(routing_id()));
-
- webview()->focusedFrame()->moveCaretSelection(point);
+ webview()->focusedFrame()->moveCaretSelection(
+ ConvertWindowPointToViewport(point));
}
void RenderViewImpl::OnScrollFocusedEditableNodeIntoRect(
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/test/data/touch_selection.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698