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 0f3aba21711281ff91244caa1b85821f4d50c18a..b6a7a56d31ed645f6b99c6b0f2a1318f155af947 100644 |
--- a/third_party/WebKit/Source/core/dom/Node.cpp |
+++ b/third_party/WebKit/Source/core/dom/Node.cpp |
@@ -973,10 +973,9 @@ |
if (layoutObject()) { |
const ComputedStyle& style = layoutObject()->styleRef(); |
- // 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) |
+ // 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) |
return false; |
} |
ContainerNode* parent = FlatTreeTraversal::parent(*this); |