| 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);
|
| }
|
|
|