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

Unified Diff: third_party/WebKit/Source/core/editing/SelectionController.cpp

Issue 2461293002: Merge "Revert of Content in disabled input field should not be selectable. (patchset #4 id:80001 of… (Closed)
Patch Set: Created 4 years, 2 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 | « third_party/WebKit/Source/core/dom/Node.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b6c80b53489d732acb45ea5dec59c1417ab72efc..173c7616b9db25b0a4a7074300fa125cfb2bb79c 100644
--- a/third_party/WebKit/Source/core/editing/SelectionController.cpp
+++ b/third_party/WebKit/Source/core/editing/SelectionController.cpp
@@ -715,8 +715,9 @@ bool SelectionController::handleGestureLongPress(
if (!innerNode)
return false;
innerNode->document().updateStyleAndLayoutTree();
- bool innerNodeIsSelectable =
- hasEditableStyle(*innerNode) || innerNode->canStartSelection();
+ bool innerNodeIsSelectable = hasEditableStyle(*innerNode) ||
+ innerNode->isTextNode() ||
+ innerNode->canStartSelection();
if (!innerNodeIsSelectable)
return false;
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698