| Index: Source/core/page/DragController.cpp
|
| diff --git a/Source/core/page/DragController.cpp b/Source/core/page/DragController.cpp
|
| index cdf18316ae531ea2763829cbc36f0b5db7b6a042..78a23a16f795fa8343a04d85512c825351ebae5b 100644
|
| --- a/Source/core/page/DragController.cpp
|
| +++ b/Source/core/page/DragController.cpp
|
| @@ -430,7 +430,7 @@ static bool setSelectionToDragCaret(LocalFrame* frame, VisibleSelection& dragCar
|
| if (frame->selection().isNone()) {
|
| dragCaret = VisibleSelection(frame->visiblePositionForPoint(point));
|
| frame->selection().setSelection(dragCaret);
|
| - range = dragCaret.toNormalizedRange();
|
| + range = createRange(dragCaret.toNormalizedEphemeralRange());
|
| }
|
| return !frame->selection().isNone() && frame->selection().isContentEditable();
|
| }
|
| @@ -483,7 +483,7 @@ bool DragController::concludeEditDrag(DragData* dragData)
|
|
|
| VisibleSelection dragCaret(m_page->dragCaretController().caretPosition());
|
| m_page->dragCaretController().clear();
|
| - RefPtrWillBeRawPtr<Range> range = dragCaret.toNormalizedRange();
|
| + RefPtrWillBeRawPtr<Range> range = createRange(dragCaret.toNormalizedEphemeralRange());
|
| RefPtrWillBeRawPtr<Element> rootEditableElement = innerFrame->selection().rootEditableElement();
|
|
|
| // For range to be null a WebKit client must have done something bad while
|
|
|