Index: third_party/WebKit/Source/core/editing/SelectionController.cpp |
diff --git a/third_party/WebKit/Source/core/editing/SelectionController.cpp b/third_party/WebKit/Source/core/editing/SelectionController.cpp |
index 89f86731d3aaf003d5e9eb34faa355a18c0d09de..83362c8305e04eee4226f6e287da66ccc37e856d 100644 |
--- a/third_party/WebKit/Source/core/editing/SelectionController.cpp |
+++ b/third_party/WebKit/Source/core/editing/SelectionController.cpp |
@@ -1047,7 +1047,8 @@ void SelectionController::SendContextMenuEvent( |
AutoReset<bool> mouse_down_may_start_select_change( |
&mouse_down_may_start_select_, true); |
- if (HitTestResultIsMisspelled(mev.GetHitTestResult())) |
+ if (HitTestResultIsMisspelled(mev.GetHitTestResult()) && |
yosin_UTC9
2017/05/24 05:08:38
It is better to check |FromTouch()| before calling
amaralp1
2017/05/24 05:33:27
Done.
|
+ !mev.Event().FromTouch()) |
return SelectClosestMisspellingFromMouseEvent(mev); |
if (!frame_->GetEditor().Behavior().ShouldSelectOnContextualMenuClick()) |