| Index: Source/core/clipboard/Pasteboard.cpp
|
| diff --git a/Source/core/clipboard/Pasteboard.cpp b/Source/core/clipboard/Pasteboard.cpp
|
| index e6c0e7ade3f3812e8ce70a686a271e1fde89cfbc..21d5fa664b7a1be810c39343b390dfde278cd157 100644
|
| --- a/Source/core/clipboard/Pasteboard.cpp
|
| +++ b/Source/core/clipboard/Pasteboard.cpp
|
| @@ -34,7 +34,6 @@
|
| #include "core/clipboard/DataObject.h"
|
| #include "platform/clipboard/ClipboardUtilities.h"
|
| #include "platform/graphics/Image.h"
|
| -#include "platform/graphics/skia/NativeImageSkia.h"
|
| #include "platform/weborigin/KURL.h"
|
| #include "public/platform/Platform.h"
|
| #include "public/platform/WebDragData.h"
|
| @@ -82,11 +81,11 @@ void Pasteboard::writeImage(Image* image, const KURL& url, const String& title)
|
| {
|
| ASSERT(image);
|
|
|
| - RefPtr<NativeImageSkia> bitmap = image->nativeImageForCurrentFrame();
|
| - if (!bitmap)
|
| + SkBitmap bitmap;
|
| + if (!image->bitmapForCurrentFrame(&bitmap))
|
| return;
|
|
|
| - blink::WebImage webImage = bitmap->bitmap();
|
| + blink::WebImage webImage = bitmap;
|
| blink::Platform::current()->clipboard()->writeImage(webImage, blink::WebURL(url), blink::WebString(title));
|
| }
|
|
|
|
|