Chromium Code Reviews| Index: content/browser/renderer_host/input/touch_selection_controller.cc |
| diff --git a/content/browser/renderer_host/input/touch_selection_controller.cc b/content/browser/renderer_host/input/touch_selection_controller.cc |
| index d5380487e255bb339823fe0b39f112633f0d2ce6..1ec83f92ff80c7640fe6650aa024f3a29c9c2987 100644 |
| --- a/content/browser/renderer_host/input/touch_selection_controller.cc |
| +++ b/content/browser/renderer_host/input/touch_selection_controller.cc |
| @@ -140,6 +140,9 @@ void TouchSelectionController::OnTapEvent() { |
| activate_selection_automatically_ = false; |
| DeactivateSelection(); |
| ShowInsertionHandleAutomatically(); |
| + if (selection_empty_) { |
| + DeactivateInsertion(); |
|
jdduke (slow)
2014/08/18 17:08:33
Nit: No need for braces. Also, please add a unit t
AKVT
2014/08/18 18:18:21
Done. Thanks
|
| + } |
| ResetCachedValuesIfInactive(); |
| } |