Index: Source/core/page/EventHandler.cpp |
diff --git a/Source/core/page/EventHandler.cpp b/Source/core/page/EventHandler.cpp |
index 22c1e6862a0a40e813a32c5323dbd4adea78492d..82339d8c089f981421ae7fc3df3e9829086b8f68 100644 |
--- a/Source/core/page/EventHandler.cpp |
+++ b/Source/core/page/EventHandler.cpp |
@@ -2323,7 +2323,11 @@ bool EventHandler::handleGestureLongPress(const GestureEventWithHitTestResults& |
IntPoint hitTestPoint = m_frame->view()->windowToContents(gestureEvent.position()); |
HitTestResult result = hitTestResultAtPoint(hitTestPoint); |
Node* innerNode = result.innerNode(); |
- if (!result.isLiveLink() && innerNode && (innerNode->isContentEditable() || innerNode->isTextNode())) { |
+ if (!result.isLiveLink() && innerNode && (innerNode->isContentEditable() || innerNode->isTextNode() |
+#if OS(ANDROID) |
+ || innerNode->canStartSelection() |
+#endif |
+ )) { |
selectClosestWordFromHitTestResult(result, DontAppendTrailingWhitespace); |
if (m_frame->selection().isRange()) { |
focusDocumentView(); |