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

Unified Diff: third_party/WebKit/Source/core/dom/Node.cpp

Issue 2882093002: Make EUserSelect an enum class. (Closed)
Patch Set: Rebase Created 3 years, 7 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/dom/Node.cpp
diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp
index 75a14c126049e00ced0923749a439772f8c35f52..2c1b5bee29fb8df519818bd1fb51beae183a9303 100644
--- a/third_party/WebKit/Source/core/dom/Node.cpp
+++ b/third_party/WebKit/Source/core/dom/Node.cpp
@@ -1047,7 +1047,8 @@ bool Node::CanStartSelection() const {
// 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)
+ if (style.UserDrag() == DRAG_ELEMENT &&
+ style.UserSelect() == EUserSelect::kNone)
return false;
}
ContainerNode* parent = FlatTreeTraversal::Parent(*this);

Powered by Google App Engine
This is Rietveld 408576698