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

Unified Diff: third_party/WebKit/Source/core/page/DragController.cpp

Issue 2432173005: Get rid of VisibleSelection::selectionFromContentsOfNode() (Closed)
Patch Set: 2016-10-20T17:14:18 Created 4 years, 2 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/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());
}
}

Powered by Google App Engine
This is Rietveld 408576698