| Index: Source/core/editing/Editor.cpp
|
| diff --git a/Source/core/editing/Editor.cpp b/Source/core/editing/Editor.cpp
|
| index be3880e42c6894527e08d28113a252fb89079215..8b0f7568779378b8e82bade5050d70543d557ab6 100644
|
| --- a/Source/core/editing/Editor.cpp
|
| +++ b/Source/core/editing/Editor.cpp
|
| @@ -447,7 +447,7 @@ static void writeImageNodeToPasteboard(Pasteboard* pasteboard, Node* node, const
|
| urlString = toElement(node)->getAttribute(XLinkNames::hrefAttr);
|
| else if (node->hasTagName(embedTag) || node->hasTagName(objectTag))
|
| urlString = toElement(node)->imageSourceURL();
|
| - KURL url = urlString.isEmpty() ? KURL() : node->document().completeURL(stripLeadingAndTrailingHTMLSpaces(urlString));
|
| + KURL url = urlString.isEmpty() ? KURL() : node->treeScope().completeURL(stripLeadingAndTrailingHTMLSpaces(urlString));
|
|
|
| pasteboard->writeImage(image, url, title);
|
| }
|
|
|