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

Unified Diff: third_party/WebKit/Source/core/editing/InputMethodController.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/InputMethodController.cpp
diff --git a/third_party/WebKit/Source/core/editing/InputMethodController.cpp b/third_party/WebKit/Source/core/editing/InputMethodController.cpp
index 7c8eac1d3564702b2b4bef01743bfb69be6340cd..5b46a96cc3e4b46234b9885ed4e2c95a28259f69 100644
--- a/third_party/WebKit/Source/core/editing/InputMethodController.cpp
+++ b/third_party/WebKit/Source/core/editing/InputMethodController.cpp
@@ -775,7 +775,7 @@ PlainTextRange InputMethodController::getSelectionOffsets() const {
if (range.isNull())
return PlainTextRange();
ContainerNode* const editable = rootEditableElementOrTreeScopeRootNodeOf(
- frame().selection().computeVisibleSelectionInDOMTreeDeprecated());
+ frame().selection().computeVisibleSelectionInDOMTree().base());
yosin_UTC9 2017/03/09 07:00:13 L774 calls computeVisibleSelectionInDOMTreeDepreca
DCHECK(editable);
return PlainTextRange::create(*editable, range);
}

Powered by Google App Engine
This is Rietveld 408576698