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..5de205080b24a0b001d7a42737d5eab67d2173f2 100644 |
--- a/third_party/WebKit/Source/core/page/DragController.cpp |
+++ b/third_party/WebKit/Source/core/page/DragController.cpp |
@@ -617,12 +617,10 @@ bool DragController::concludeEditDrag(DragData* dragData) { |
dragCaret.base())) |
return false; |
- // 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())); |
+ SelectionInDOMTree::Builder() |
+ .setBaseAndExtent(EphemeralRange(range)) |
+ .build()); |
if (innerFrame->selection().isAvailable()) { |
DCHECK(m_documentUnderMouse); |
if (!innerFrame->editor().replaceSelectionAfterDraggingWithEvents( |