Title: [107856] trunk/Source/WebCore
Revision
107856
Author
[email protected]
Date
2012-02-15 16:45:53 -0800 (Wed, 15 Feb 2012)

Log Message

REGRESSION: "Copy image" fails...copies image URL instead.
https://bugs.webkit.org/show_bug.cgi?id=78723
<rdar://problem/10869104>

During the refactoring of the Pasteboard class some code was lost.
When placing an NSImage in the NSPasteboard as NSTIFFPboardType, we need
to use the its TIFF representation.
        
Reviewed by Andy Estes.

* platform/mac/PasteboardMac.mm:
(WebCore::Pasteboard::writeImage):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (107855 => 107856)


--- trunk/Source/WebCore/ChangeLog	2012-02-16 00:39:25 UTC (rev 107855)
+++ trunk/Source/WebCore/ChangeLog	2012-02-16 00:45:53 UTC (rev 107856)
@@ -1,3 +1,18 @@
+2012-02-15  Enrica Casucci  <[email protected]>
+
+        REGRESSION: "Copy image" fails...copies image URL instead.
+        https://bugs.webkit.org/show_bug.cgi?id=78723
+        <rdar://problem/10869104>
+
+        During the refactoring of the Pasteboard class some code was lost.
+        When placing an NSImage in the NSPasteboard as NSTIFFPboardType, we need
+        to use the its TIFF representation.
+        
+        Reviewed by Andy Estes.
+
+        * platform/mac/PasteboardMac.mm:
+        (WebCore::Pasteboard::writeImage):
+
 2012-01-31  Raphael Kubo da Costa  <[email protected]>
 
         [soup] Add support for multiple SoupSessions.

Modified: trunk/Source/WebCore/platform/mac/PasteboardMac.mm (107855 => 107856)


--- trunk/Source/WebCore/platform/mac/PasteboardMac.mm	2012-02-16 00:39:25 UTC (rev 107855)
+++ trunk/Source/WebCore/platform/mac/PasteboardMac.mm	2012-02-16 00:45:53 UTC (rev 107856)
@@ -287,7 +287,7 @@
     Image* image = cachedImage->imageForRenderer(renderer);
     ASSERT(image);
     
-    platformStrategies()->pasteboardStrategy()->setBufferForType(SharedBuffer::wrapNSData((NSData *)image->getNSImage()), NSTIFFPboardType, m_pasteboardName);
+    platformStrategies()->pasteboardStrategy()->setBufferForType(SharedBuffer::wrapNSData((NSData *)[image->getNSImage() TIFFRepresentation]), NSTIFFPboardType, m_pasteboardName);
 
     String MIMEType = cachedImage->response().mimeType();
     ASSERT(MIMETypeRegistry::isSupportedImageResourceMIMEType(MIMEType));
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to