| 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 7ea8eddf77aaa70f6038d00a88f883508d7364c3..7e10ac38a9db2f689acefe74cd5e96ec2419b480 100644
|
| --- a/third_party/WebKit/Source/core/editing/InputMethodController.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/InputMethodController.cpp
|
| @@ -585,7 +585,8 @@ void InputMethodController::setComposition(
|
| document().updateStyleAndLayoutIgnorePendingStylesheets();
|
|
|
| // Find out what node has the composition now.
|
| - Position base = mostForwardCaretPosition(frame().selection().base());
|
| + Position base = mostForwardCaretPosition(
|
| + frame().selection().computeVisibleSelectionInDOMTree().base());
|
| Node* baseNode = base.anchorNode();
|
| if (!baseNode || !baseNode->isTextNode())
|
| return;
|
|
|