| Index: third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp b/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
|
| index 02fa31866838505e4ab8ffb276f5ba349233669b..efa6a0b9ef74702c5069835da12a72774c51ad65 100644
|
| --- a/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
|
| @@ -304,8 +304,14 @@ bool ContextMenuClientImpl::showContextMenu(const ContextMenu* defaultMenu,
|
|
|
| if (r.isSelected()) {
|
| if (!isHTMLInputElement(*r.innerNode()) ||
|
| - toHTMLInputElement(r.innerNode())->type() != InputTypeNames::password)
|
| + toHTMLInputElement(r.innerNode())->type() != InputTypeNames::password) {
|
| + // TODO(xiaochengh): Use of updateStyleAndLayoutIgnorePendingStylesheets
|
| + // needs to be audited. See http://crbug.com/590369 for more details.
|
| + // Plain text extraction requires clean layout.
|
| + selectedFrame->document()->updateStyleAndLayoutIgnorePendingStylesheets();
|
| +
|
| data.selectedText = selectedFrame->selectedText().stripWhiteSpace();
|
| + }
|
| }
|
|
|
| if (r.isContentEditable()) {
|
|
|