| Index: Source/core/editing/Editor.cpp
|
| diff --git a/Source/core/editing/Editor.cpp b/Source/core/editing/Editor.cpp
|
| index a37d08b81df42f73690eb54b36e034f9d7796f71..807a9daec420aeef6f15212928f278ee4fc9c903 100644
|
| --- a/Source/core/editing/Editor.cpp
|
| +++ b/Source/core/editing/Editor.cpp
|
| @@ -450,8 +450,8 @@ static void writeImageNodeToPasteboard(Pasteboard* pasteboard, Node* node, const
|
| ASSERT(pasteboard);
|
| ASSERT(node);
|
|
|
| - Image* image = imageFromNode(*node);
|
| - if (!image)
|
| + RefPtrWillBeRawPtr<Image> image = imageFromNode(*node);
|
| + if (!image.get())
|
| return;
|
|
|
| // FIXME: This should probably be reconciled with HitTestResult::absoluteImageURL.
|
| @@ -464,7 +464,7 @@ static void writeImageNodeToPasteboard(Pasteboard* pasteboard, Node* node, const
|
| urlString = toElement(node)->imageSourceURL();
|
| KURL url = urlString.isEmpty() ? KURL() : node->document().completeURL(stripLeadingAndTrailingHTMLSpaces(urlString));
|
|
|
| - pasteboard->writeImage(image, url, title);
|
| + pasteboard->writeImage(image.get(), url, title);
|
| }
|
|
|
| // Returns whether caller should continue with "the default processing", which is the same as
|
|
|