Index: Source/core/dom/Node.cpp |
diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp |
index 906b418a2f646e51e05ecf10f07225b3739172a6..2a99974d465f224bfb63ab1a77da321a0407c012 100644 |
--- a/Source/core/dom/Node.cpp |
+++ b/Source/core/dom/Node.cpp |
@@ -1040,10 +1040,10 @@ bool Node::canStartSelection() const |
return true; |
if (renderer()) { |
- LayoutStyle* style = renderer()->style(); |
+ const LayoutStyle& style = renderer()->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) |
+ if (style.userDrag() == DRAG_ELEMENT && style.userSelect() == SELECT_NONE) |
return false; |
} |
return parentOrShadowHostNode() ? parentOrShadowHostNode()->canStartSelection() : true; |