| 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 0bd3b86d91b2380d6a7380e89bc63feae01cc7e0..695b8c39c3ccded865a45f80ca40583871c2c870 100644
|
| --- a/third_party/WebKit/Source/core/editing/InputMethodController.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/InputMethodController.cpp
|
| @@ -399,6 +399,10 @@ 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
|
| @@ -436,6 +440,10 @@ void InputMethodController::setCompositionFromExistingText(const Vector<Composit
|
| if (!editable)
|
| return;
|
|
|
| + // TODO(dglazkov): The use of updateStyleAndLayoutIgnorePendingStylesheets needs to be audited.
|
| + // see http://crbug.com/590369 for more details.
|
| + editable->document().updateStyleAndLayoutIgnorePendingStylesheets();
|
| +
|
| const EphemeralRange range = PlainTextRange(compositionStart, compositionEnd).createRange(*editable);
|
| if (range.isNull())
|
| return;
|
| @@ -501,6 +509,10 @@ bool InputMethodController::setSelectionOffsets(const PlainTextRange& selectionO
|
| if (!rootEditableElement)
|
| return false;
|
|
|
| + // TODO(dglazkov): The use of updateStyleAndLayoutIgnorePendingStylesheets needs to be audited.
|
| + // see http://crbug.com/590369 for more details.
|
| + rootEditableElement->document().updateStyleAndLayoutIgnorePendingStylesheets();
|
| +
|
| const EphemeralRange range = selectionOffsets.createRange(*rootEditableElement);
|
| if (range.isNull())
|
| return false;
|
|
|