Chromium Code Reviews| 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 520d524322e63ad3a6f1bc3e0a2970d4f648473b..e20e000c37836e022d33d2f4bb449d9410decfb5 100644 |
| --- a/third_party/WebKit/Source/core/page/DragController.cpp |
| +++ b/third_party/WebKit/Source/core/page/DragController.cpp |
| @@ -622,7 +622,9 @@ bool DragController::concludeEditDrag(DragData* dragData) { |
| innerFrame->document()->updateStyleAndLayoutIgnorePendingStylesheets(); |
|
Xiaocheng
2016/10/26 05:49:18
We can remove it now.
yosin_UTC9
2016/10/26 07:43:07
Good catch!
Done.
|
| innerFrame->selection().setSelection( |
| - createVisibleSelection(range->startPosition(), range->endPosition())); |
| + SelectionInDOMTree::Builder() |
| + .setBaseAndExtent(EphemeralRange(range)) |
| + .build()); |
| if (innerFrame->selection().isAvailable()) { |
| DCHECK(m_documentUnderMouse); |
| if (!innerFrame->editor().replaceSelectionAfterDraggingWithEvents( |