| 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 695b8c39c3ccded865a45f80ca40583871c2c870..532d114c4474dd5d350eec85d64df9090f6be9cd 100644
|
| --- a/third_party/WebKit/Source/core/editing/InputMethodController.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/InputMethodController.cpp
|
| @@ -364,6 +364,10 @@ void InputMethodController::setComposition(const String& text, const Vector<Comp
|
| if (!frame().document())
|
| return;
|
|
|
| + // TODO(yosin): The use of updateStyleAndLayoutIgnorePendingStylesheets
|
| + // needs to be audited. see http://crbug.com/590369 for more details.
|
| + frame().document()->updateStyleAndLayoutIgnorePendingStylesheets();
|
| +
|
| // Find out what node has the composition now.
|
| Position base = mostForwardCaretPosition(frame().selection().base());
|
| Node* baseNode = base.anchorNode();
|
| @@ -399,10 +403,6 @@ void InputMethodController::setComposition(const String& text, const Vector<Comp
|
| if (!rootEditableElement)
|
| return;
|
|
|
| - // TODO(dglazkov): The use of updateStyleAndLayoutIgnorePendingStylesheets needs to be audited.
|
| - // see http://crbug.com/590369 for more details.
|
| - rootEditableElement->document().updateStyleAndLayoutIgnorePendingStylesheets();
|
| -
|
| // In case of exceeding the right boundary.
|
| // If both |value1| and |value2| exceed right boundary,
|
| // PlainTextRange(value1, value2)::createRange() will return a default
|
|
|