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

Unified Diff: third_party/WebKit/Source/core/editing/InputMethodController.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
Index: third_party/WebKit/Source/core/editing/InputMethodController.cpp
diff --git a/third_party/WebKit/Source/core/editing/InputMethodController.cpp b/third_party/WebKit/Source/core/editing/InputMethodController.cpp
index 8fd939acdb3be1886c2b6beef3a7b2bc15cc3cbd..be4e5a0b6b0159918e0b43d2e0f01eeaf966235a 100644
--- a/third_party/WebKit/Source/core/editing/InputMethodController.cpp
+++ b/third_party/WebKit/Source/core/editing/InputMethodController.cpp
@@ -698,8 +698,8 @@ PlainTextRange InputMethodController::getSelectionOffsets() const {
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);
}

Powered by Google App Engine
This is Rietveld 408576698