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

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

Issue 2704933006: Expand FrameSeleciton::rootEditableElement() to increase chances of hoisting update layout (Closed)
Patch Set: 2017-02-21T15:42:51 Created 3 years, 10 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
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 3ffdd07b1cb777aeb7d62b2fed3220872f9e27f0..9426f094bec86f7853499e4c4715f42d0d622288 100644
--- a/third_party/WebKit/Source/core/page/DragController.cpp
+++ b/third_party/WebKit/Source/core/page/DragController.cpp
@@ -572,7 +572,10 @@ bool DragController::concludeEditDrag(DragData* dragData) {
return false;
}
Range* range = createRange(dragCaret.toNormalizedEphemeralRange());
- Element* rootEditableElement = innerFrame->selection().rootEditableElement();
+ Element* rootEditableElement =
+ innerFrame->selection()
+ .computeVisibleSelectionInDOMTreeDeprecated()
+ .rootEditableElement();
// For range to be null a WebKit client must have done something bad while
// manually controlling drag behaviour
« no previous file with comments | « third_party/WebKit/Source/core/editing/commands/RemoveFormatCommand.cpp ('k') | third_party/WebKit/Source/web/WebRange.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698