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

Unified Diff: third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp

Issue 2742703002: Make rootEditableElementOrTreeScopeRootNodeOf() to take Position instead of VisibleSeleciton (Closed)
Patch Set: 2017-03-09T14:58:18 Created 3 years, 9 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/editing/commands/TypingCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp b/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp
index ef00372c38e625714f559c15b72f23d87e4f5224..33151fb23397d66a88f0810b1c44c2c1ffccdf6c 100644
--- a/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp
@@ -87,7 +87,7 @@ PlainTextRange getSelectionOffsets(LocalFrame* frame) {
if (range.isNull())
return PlainTextRange();
ContainerNode* const editable = rootEditableElementOrTreeScopeRootNodeOf(
- frame->selection().computeVisibleSelectionInDOMTreeDeprecated());
+ frame->selection().computeVisibleSelectionInDOMTree().base());
DCHECK(editable);
return PlainTextRange::create(*editable, range);
}

Powered by Google App Engine
This is Rietveld 408576698