| Index: third_party/WebKit/Source/core/dom/Node.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp
|
| index b6a7a56d31ed645f6b99c6b0f2a1318f155af947..0f3aba21711281ff91244caa1b85821f4d50c18a 100644
|
| --- a/third_party/WebKit/Source/core/dom/Node.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Node.cpp
|
| @@ -973,9 +973,10 @@ bool Node::canStartSelection() const
|
|
|
| if (layoutObject()) {
|
| const ComputedStyle& style = layoutObject()->styleRef();
|
| - // We allow selections to begin within an element that has -webkit-user-select: none set,
|
| - // but if the element is draggable then dragging should take priority over selection.
|
| - if (style.userDrag() == DRAG_ELEMENT && style.userSelect() == SELECT_NONE)
|
| + // We don't allow selections to begin within an element that has
|
| + // -webkit-user-select: none set,
|
| + // https://drafts.csswg.org/css-ui-4/#valdef-user-select-none
|
| + if (style.userSelect() == SELECT_NONE)
|
| return false;
|
| }
|
| ContainerNode* parent = FlatTreeTraversal::parent(*this);
|
|
|