Index: third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp |
diff --git a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp |
index 86c93cfd5d6b182744b968eb9c2cdc3f249a90ae..b597a662287444fdbc4800e891b3e0f56f1bba11 100644 |
--- a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp |
@@ -616,6 +616,12 @@ WebTextInputInfo WebFrameWidgetImpl::textInputInfo() |
if (!focused->editor().canEdit()) |
return info; |
+ // TODO(xiaochengh): The use of updateStyleAndLayoutIgnorePendingStylesheets needs to be audited. |
+ // see http://crbug.com/590369 for more details. |
+ focused->document()->updateStyleAndLayoutIgnorePendingStylesheets(); |
+ |
+ DocumentLifecycle::DisallowTransitionScope disallowTransition(focused->document()->lifecycle()); |
+ |
// Emits an object replacement character for each replaced element so that |
// it is exposed to IME and thus could be deleted by IME on android. |
info.value = plainText(EphemeralRange::rangeOfContents(*element), TextIteratorEmitsObjectReplacementCharacter); |