diff options
Diffstat (limited to 'Source/WebCore/platform/mac/PasteboardMac.mm')
-rw-r--r-- | Source/WebCore/platform/mac/PasteboardMac.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/WebCore/platform/mac/PasteboardMac.mm b/Source/WebCore/platform/mac/PasteboardMac.mm index 750130fc4..95af8f6c7 100644 --- a/Source/WebCore/platform/mac/PasteboardMac.mm +++ b/Source/WebCore/platform/mac/PasteboardMac.mm @@ -49,6 +49,7 @@ #import "MIMETypeRegistry.h" #import "Page.h" #import "RenderImage.h" +#import "ResourceBuffer.h" #import "Text.h" #import "WebCoreNSStringExtras.h" #import "WebNSAttributedStringExtras.h" @@ -260,7 +261,7 @@ void Pasteboard::writeURL(const KURL& url, const String& titleStr, Frame* frame) static NSFileWrapper* fileWrapperForImage(CachedResource* resource, NSURL *url) { - SharedBuffer* coreData = resource->data(); + ResourceBuffer* coreData = resource->resourceBuffer(); NSData *data = [[[NSData alloc] initWithBytes:coreData->data() length:coreData->size()] autorelease]; NSFileWrapper *wrapper = [[[NSFileWrapper alloc] initRegularFileWithContents:data] autorelease]; String coreMIMEType = resource->response().mimeType(); |