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

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

Issue 2715913002: Introduce rootEditableElementOrTreeScopeRootNodeOf() as replacement of FrameSelection member (Closed)
Patch Set: 2017-02-24T16:18:33 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
« no previous file with comments | « third_party/WebKit/Source/core/editing/InputMethodController.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/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 7313874cb3719a3740746c01431fd621de89ba60..e47b8b27d0ba607435d0a760bdd461d957cb98f9 100644
--- a/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp
@@ -85,8 +85,8 @@ PlainTextRange getSelectionOffsets(LocalFrame* frame) {
frame->selection().computeVisibleSelectionInDOMTreeDeprecated());
if (range.isNull())
return PlainTextRange();
- ContainerNode* editable =
- frame->selection().rootEditableElementOrTreeScopeRootNode();
+ ContainerNode* const editable = rootEditableElementOrTreeScopeRootNodeOf(
+ frame->selection().computeVisibleSelectionInDOMTreeDeprecated());
DCHECK(editable);
return PlainTextRange::create(*editable, range);
}
« no previous file with comments | « third_party/WebKit/Source/core/editing/InputMethodController.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698