| Index: third_party/WebKit/Source/core/clipboard/DataTransfer.cpp
|
| diff --git a/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp b/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp
|
| index 168520b05dd5cadee30134088d2e24b969bfcad5..a61d54953e6cc3551853263aa9a042668ca064ab 100644
|
| --- a/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp
|
| +++ b/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp
|
| @@ -322,7 +322,8 @@ void DataTransfer::writeSelection(const FrameSelection& selection) {
|
| if (!m_dataObject)
|
| return;
|
|
|
| - if (!enclosingTextControl(selection.start())) {
|
| + if (!enclosingTextControl(
|
| + selection.computeVisibleSelectionInDOMTreeDeprecated().start())) {
|
| m_dataObject->setHTMLAndBaseURL(selection.selectedHTMLForClipboard(),
|
| selection.frame()->document()->url());
|
| }
|
|
|