| 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 8e933ff8d4ed5ae6b7db52593b869ece872f59d3..052f0448b98d96bf119a7574803cb230dec43f2c 100644
|
| --- a/third_party/WebKit/Source/core/page/DragController.cpp
|
| +++ b/third_party/WebKit/Source/core/page/DragController.cpp
|
| @@ -465,7 +465,9 @@ static bool setSelectionToDragCaret(LocalFrame* frame,
|
| Range*& range,
|
| const IntPoint& point) {
|
| frame->selection().setSelection(dragCaret);
|
| - if (frame->selection().isNone()) {
|
| + if (frame->selection()
|
| + .computeVisibleSelectionInDOMTreeDeprecated()
|
| + .isNone()) {
|
| // TODO(editing-dev): The use of
|
| // updateStyleAndLayoutIgnorePendingStylesheets
|
| // needs to be audited. See http://crbug.com/590369 for more details.
|
| @@ -480,7 +482,9 @@ static bool setSelectionToDragCaret(LocalFrame* frame,
|
| dragCaret = frame->selection().computeVisibleSelectionInDOMTreeDeprecated();
|
| range = createRange(dragCaret.toNormalizedEphemeralRange());
|
| }
|
| - return !frame->selection().isNone() &&
|
| + return !frame->selection()
|
| + .computeVisibleSelectionInDOMTreeDeprecated()
|
| + .isNone() &&
|
| frame->selection()
|
| .computeVisibleSelectionInDOMTreeDeprecated()
|
| .isContentEditable();
|
|
|