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

Unified Diff: content/browser/renderer_host/render_widget_host_view_android.cc

Issue 569003002: Fix for Insertion Handle disappearing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: changed according to review comments Created 6 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/browser/renderer_host/render_widget_host_view_android.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
index 9ccfa6ccc0491fcc4fae669b07b4fc8aa996463a..48070031aa230d87a4f199e77145ee5cc5b1aee1 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -829,7 +829,7 @@ void RenderWidgetHostViewAndroid::SelectionBoundsChanged(
end_bound.edge_bottom = end_rect.bottom_left();
if (params.anchor_rect == params.focus_rect) {
- if (params.anchor_rect.x() && params.anchor_rect.y())
+ if (params.anchor_rect.x() || params.anchor_rect.y())
start_bound.type = end_bound.type = cc::SELECTION_BOUND_CENTER;
} else {
start_bound.type = params.anchor_dir == blink::WebTextDirectionRightToLeft
« 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