| 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 6b23c57f2884d08920fe83696590fd163cb2dc29..8fd939acdb3be1886c2b6beef3a7b2bc15cc3cbd 100644
|
| --- a/third_party/WebKit/Source/core/editing/InputMethodController.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/InputMethodController.cpp
|
| @@ -590,7 +590,8 @@ void InputMethodController::setComposition(
|
| if (!baseNode || !baseNode->isTextNode())
|
| return;
|
|
|
| - Position extent = frame().selection().extent();
|
| + Position extent =
|
| + frame().selection().computeVisibleSelectionInDOMTree().extent();
|
| Node* extentNode = extent.anchorNode();
|
|
|
| unsigned extentOffset = extent.computeOffsetInContainerNode();
|
|
|