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 |