| 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 9483dab469c5f2a40082349255947b8dff86d795..313bd9881ee4afa09cec937fce14ed149421d3cf 100644
|
| --- a/third_party/WebKit/Source/core/page/DragController.cpp
|
| +++ b/third_party/WebKit/Source/core/page/DragController.cpp
|
| @@ -1150,7 +1150,10 @@ bool DragController::startDrag(LocalFrame* src,
|
| // a user can initiate a drag on a link without having any text
|
| // selected. In this case, we should expand the selection to
|
| // the enclosing anchor element
|
| - if (Node* node = enclosingAnchorElement(src->selection().base())) {
|
| + if (Node* node = enclosingAnchorElement(
|
| + src->selection()
|
| + .computeVisibleSelectionInDOMTreeDeprecated()
|
| + .base())) {
|
| src->selection().setSelection(
|
| SelectionInDOMTree::Builder().selectAllChildren(*node).build());
|
| }
|
|
|