Index: third_party/WebKit/Source/core/page/DragController.cpp |
diff --git a/third_party/WebKit/Source/core/page/DragController.cpp b/third_party/WebKit/Source/core/page/DragController.cpp |
index 25bb2766bf30cd9a58a8ece2b74f73aa08a7c43d..da14b01642dbb0b5e2fcdbde3a70f2f5a3e3c669 100644 |
--- a/third_party/WebKit/Source/core/page/DragController.cpp |
+++ b/third_party/WebKit/Source/core/page/DragController.cpp |
@@ -1099,7 +1099,7 @@ bool DragController::startDrag(LocalFrame* src, |
// the enclosing anchor element |
if (Node* node = enclosingAnchorElement(src->selection().base())) { |
src->selection().setSelection( |
- VisibleSelection::selectionFromContentsOfNode(node)); |
+ SelectionInDOMTree::Builder().selectAllChildren(*node).build()); |
} |
} |