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

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

Issue 2151803003: [Editing][Regression] Contenteditable w/ "-webkit-user-select:all" should be editable for drag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 4 years, 5 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
Index: third_party/WebKit/Source/core/editing/EditingStrategy.cpp
diff --git a/third_party/WebKit/Source/core/editing/EditingStrategy.cpp b/third_party/WebKit/Source/core/editing/EditingStrategy.cpp
index b85e35c2bfbc522f3b53d60f8733fcba6b115bac..009c944805d223a826dd9863b46387d812e58ea6 100644
--- a/third_party/WebKit/Source/core/editing/EditingStrategy.cpp
+++ b/third_party/WebKit/Source/core/editing/EditingStrategy.cpp
@@ -69,7 +69,7 @@ int EditingAlgorithm<Traversal>::lastOffsetForEditing(const Node* node)
template <typename Strategy>
Node* EditingAlgorithm<Strategy>::rootUserSelectAllForNode(Node* node)
{
- if (!node || !nodeIsUserSelectAll(node))
+ if (!node || usedValueOfUserSelect(*node) != SELECT_ALL)
return nullptr;
Node* parent = Strategy::parent(*node);
if (!parent)
@@ -81,7 +81,7 @@ Node* EditingAlgorithm<Strategy>::rootUserSelectAllForNode(Node* node)
parent = Strategy::parent(*parent);
continue;
}
- if (!nodeIsUserSelectAll(parent))
+ if (usedValueOfUserSelect(*parent) != SELECT_ALL)
break;
candidateRoot = parent;
parent = Strategy::parent(*candidateRoot);

Powered by Google App Engine
This is Rietveld 408576698