Use an API symbol instead of a hardcoded string for the TIFF uniform type identifier.
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Sep 2012 04:05:52 +0000 (04:05 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Sep 2012 04:05:52 +0000 (04:05 +0000)
Reviewed by Mark Rowe.

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

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@128144 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/mac/ImageMac.mm

index b5bfcbe..1cf95b3 100644 (file)
@@ -1,3 +1,12 @@
+2012-09-10  Dan Bernstein  <mitz@apple.com>
+
+        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  <gyuyoung.kim@samsung.com>
 
         [CMake] Remove duplicated file in CMakeLists.txt
index bc0bcc5..091f2da 100644 (file)
@@ -89,8 +89,7 @@ CFDataRef BitmapImage::getTIFFRepresentation()
     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;