Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(631)

Unified Diff: third_party/WebKit/Source/core/page/DragController.cpp

Issue 2451613003: Get rid of createVisibleSelection() taking two Position (Closed)
Patch Set: 2016-10-26T15:09:55 Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698