Title: [223872] trunk/Source/WebCore
Revision
223872
Author
[email protected]
Date
2017-10-23 18:42:52 -0700 (Mon, 23 Oct 2017)

Log Message

Unreviewed, attempt to fix initializeSupportedImageMIMETypes after r223860
https://bugs.webkit.org/show_bug.cgi?id=178618
<rdar://problem/35108852>

* platform/MIMETypeRegistry.cpp:
(WebCore::initializeSupportedImageMIMETypes):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (223871 => 223872)


--- trunk/Source/WebCore/ChangeLog	2017-10-24 01:31:28 UTC (rev 223871)
+++ trunk/Source/WebCore/ChangeLog	2017-10-24 01:42:52 UTC (rev 223872)
@@ -1,3 +1,12 @@
+2017-10-23  Michael Catanzaro  <[email protected]>
+
+        Unreviewed, attempt to fix initializeSupportedImageMIMETypes after r223860
+        https://bugs.webkit.org/show_bug.cgi?id=178618
+        <rdar://problem/35108852>
+
+        * platform/MIMETypeRegistry.cpp:
+        (WebCore::initializeSupportedImageMIMETypes):
+
 2017-10-23  Keith Miller  <[email protected]>
 
         Unrievwed, fix windows build.

Modified: trunk/Source/WebCore/platform/MIMETypeRegistry.cpp (223871 => 223872)


--- trunk/Source/WebCore/platform/MIMETypeRegistry.cpp	2017-10-24 01:31:28 UTC (rev 223871)
+++ trunk/Source/WebCore/platform/MIMETypeRegistry.cpp	2017-10-24 01:42:52 UTC (rev 223872)
@@ -68,10 +68,10 @@
 
 static void initializeSupportedImageMIMETypes()
 {
-#if USE(CG)
     supportedImageResourceMIMETypes = new HashSet<String, ASCIICaseInsensitiveHash>;
     supportedImageMIMETypes = new HashSet<String, ASCIICaseInsensitiveHash>;
 
+#if USE(CG)
     // This represents the subset of allowed image UTIs for which CoreServices has a corresponding MIME type. Keep this in sync with allowedImageUTIs().
     static const char* const allowedImageMIMETypes[] = { "image/tiff", "image/gif", "image/jpeg", "image/vnd.microsoft.icon", "image/jp2", "image/png", "image/bmp" };
     for (auto& mimeType : allowedImageMIMETypes) {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to