| 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 3ffdd07b1cb777aeb7d62b2fed3220872f9e27f0..37036d4a3fd1b3972c3b15f1764a655479a95508 100644
|
| --- a/third_party/WebKit/Source/core/page/DragController.cpp
|
| +++ b/third_party/WebKit/Source/core/page/DragController.cpp
|
| @@ -1139,7 +1139,10 @@ bool DragController::startDrag(LocalFrame* src,
|
| } else if (state.m_dragType == DragSourceActionLink) {
|
| if (linkURL.isEmpty())
|
| return false;
|
| - if (src->selection().isCaret() && src->selection().isContentEditable()) {
|
| + if (src->selection()
|
| + .computeVisibleSelectionInDOMTreeDeprecated()
|
| + .isCaret() &&
|
| + src->selection().isContentEditable()) {
|
| // 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
|
|
|