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

Unified Diff: content/renderer/render_view_impl.cc

Issue 1697483003: Properly scale the coordinate for TouchSelection when use-zoom-for-dsf mode is on. 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
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 90c24f7ddffc019a20e0a8717bb3c7f6e0b11db2..f9ff01135fd0945994e6a48332c9308c42ec1439 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(
« cc/trees/layer_tree_host_impl_unittest.cc ('K') | « content/renderer/render_frame_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698