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

Unified Diff: sky/engine/core/dom/Node.cpp

Issue 1076353003: Remove -webkit-user-drag (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: First patch didn't seem to appear? Created 5 years, 8 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 | « sky/engine/core/css/parser/BisonCSSParser-in.cpp ('k') | sky/engine/core/rendering/style/RenderStyle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/Node.cpp
diff --git a/sky/engine/core/dom/Node.cpp b/sky/engine/core/dom/Node.cpp
index 8f1a273f46f1d88f81ef0ffa61e0f808219ec52e..1eb16a6f5c45d5c5e3b001b93f61ea4cd1bf81e7 100644
--- a/sky/engine/core/dom/Node.cpp
+++ b/sky/engine/core/dom/Node.cpp
@@ -819,13 +819,6 @@ bool Node::canStartSelection() const
if (hasEditableStyle())
return true;
- if (renderer()) {
- RenderStyle* style = renderer()->style();
- // 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;
- }
return parentOrShadowHostNode() ? parentOrShadowHostNode()->canStartSelection() : true;
}
« no previous file with comments | « sky/engine/core/css/parser/BisonCSSParser-in.cpp ('k') | sky/engine/core/rendering/style/RenderStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698