Title: [128144] trunk/Source/WebCore
Revision
128144
Author
[email protected]
Date
2012-09-10 21:05:52 -0700 (Mon, 10 Sep 2012)

Log Message

Use an API symbol instead of a hardcoded string for the TIFF uniform type identifier.

Reviewed by Mark Rowe.

* platform/graphics/mac/ImageMac.mm:
(WebCore::BitmapImage::getTIFFRepresentation): Replaced CFSTR("public.tiff") with kUTTypeTIFF.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (128143 => 128144)


--- trunk/Source/WebCore/ChangeLog	2012-09-11 03:50:17 UTC (rev 128143)
+++ trunk/Source/WebCore/ChangeLog	2012-09-11 04:05:52 UTC (rev 128144)
@@ -1,3 +1,12 @@
+2012-09-10  Dan Bernstein  <[email protected]>
+
+        Use an API symbol instead of a hardcoded string for the TIFF uniform type identifier.
+
+        Reviewed by Mark Rowe.
+
+        * platform/graphics/mac/ImageMac.mm:
+        (WebCore::BitmapImage::getTIFFRepresentation): Replaced CFSTR("public.tiff") with kUTTypeTIFF.
+
 2012-09-10  Gyuyoung Kim  <[email protected]>
 
         [CMake] Remove duplicated file in CMakeLists.txt

Modified: trunk/Source/WebCore/platform/graphics/mac/ImageMac.mm (128143 => 128144)


--- trunk/Source/WebCore/platform/graphics/mac/ImageMac.mm	2012-09-11 03:50:17 UTC (rev 128143)
+++ trunk/Source/WebCore/platform/graphics/mac/ImageMac.mm	2012-09-11 04:05:52 UTC (rev 128144)
@@ -89,8 +89,7 @@
     unsigned numValidFrames = images.size();
     
     RetainPtr<CFMutableDataRef> data(AdoptCF, CFDataCreateMutable(0, 0));
-    // FIXME:  Use type kCGImageTypeIdentifierTIFF constant once is becomes available in the API
-    RetainPtr<CGImageDestinationRef> destination(AdoptCF, CGImageDestinationCreateWithData(data.get(), CFSTR("public.tiff"), numValidFrames, 0));
+    RetainPtr<CGImageDestinationRef> destination(AdoptCF, CGImageDestinationCreateWithData(data.get(), kUTTypeTIFF, numValidFrames, 0));
 
     if (!destination)
         return 0;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to