| 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 306cafeb0070d0079fe460c794ddffa23187b071..e3d6a046e39c4c26f323abb9358a596ee941b643 100644
|
| --- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| @@ -1117,6 +1117,10 @@ WebString WebLocalFrameImpl::selectionAsText() const
|
| if (pluginContainer)
|
| return pluginContainer->plugin()->selectionAsText();
|
|
|
| + // TODO(xiaochengh): The use of updateStyleAndLayoutIgnorePendingStylesheets
|
| + // needs to be audited. See http://crbug.com/590369 for more details.
|
| + frame()->document()->updateStyleAndLayoutIgnorePendingStylesheets();
|
| +
|
| String text = frame()->selection().selectedText(TextIteratorEmitsObjectReplacementCharacter);
|
| #if OS(WIN)
|
| replaceNewlinesWithWindowsStyleNewlines(text);
|
|
|