| 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 bab8bb4bd4520361d0fbc9a37f754990739778d6..deef70821c46a23988416cc6f90bec57a72dc81b 100644
|
| --- a/third_party/WebKit/Source/core/page/DragController.cpp
|
| +++ b/third_party/WebKit/Source/core/page/DragController.cpp
|
| @@ -589,8 +589,12 @@ bool DragController::concludeEditDrag(DragData* dragData) {
|
| dragCaret.base()))
|
| return false;
|
|
|
| - innerFrame->selection().setSelection(createVisibleSelectionDeprecated(
|
| - range->startPosition(), range->endPosition()));
|
| + // TODO(xiaochengh): Use of updateStyleAndLayoutIgnorePendingStylesheets
|
| + // needs to be audited. See http://crbug.com/590369 for more details.
|
| + innerFrame->document()->updateStyleAndLayoutIgnorePendingStylesheets();
|
| +
|
| + innerFrame->selection().setSelection(
|
| + createVisibleSelection(range->startPosition(), range->endPosition()));
|
| if (innerFrame->selection().isAvailable()) {
|
| DCHECK(m_documentUnderMouse);
|
| if (!innerFrame->editor().replaceSelectionAfterDraggingWithEvents(
|
|
|