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

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

Issue 2455853002: Revert of Content in disabled input field should not be selectable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 2a8aa7d5a4e2f73b4e1a5953999c30433e7bf437..256c962c6425df2442f558f1501e24793ae12c03 100644
--- a/third_party/WebKit/Source/core/editing/SelectionController.cpp
+++ b/third_party/WebKit/Source/core/editing/SelectionController.cpp
@@ -846,8 +846,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