| Index: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| index 9eb70c2015db56c96005de550ad465a867b40702..2e00f291e6c24f4210ca04f33b134bec6f098b2e 100644
|
| --- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| @@ -938,6 +938,10 @@ unsigned WebLocalFrameImpl::unloadListenerCount() const
|
|
|
| void WebLocalFrameImpl::replaceSelection(const WebString& text)
|
| {
|
| + // TODO(xiaochengh): The use of updateStyleAndLayoutIgnorePendingStylesheets
|
| + // needs to be audited. See http://crbug.com/590369 for more details.
|
| + frame()->document()->updateStyleAndLayoutIgnorePendingStylesheets();
|
| +
|
| bool selectReplacement = frame()->editor().behavior().shouldSelectReplacement();
|
| bool smartReplace = true;
|
| frame()->editor().replaceSelectionWithText(text, selectReplacement, smartReplace);
|
|
|