Title: [148028] trunk/Source/WebCore
- Revision
- 148028
- Author
- [email protected]
- Date
- 2013-04-09 09:52:36 -0700 (Tue, 09 Apr 2013)
Log Message
Add webp to supported image mime types if WEBP feature is enabled/used
https://bugs.webkit.org/show_bug.cgi?id=112819
Patch by Jeff Rogers <[email protected]> on 2013-04-09
Reviewed by Darin Adler.
Add WebP to list of supported image types in MIMETypeRegistry if enabled.
No new tests: WebP image decoding already covered by exisiting tests.
* platform/MIMETypeRegistry.cpp:
(WebCore::initializeSupportedImageMIMETypes):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (148027 => 148028)
--- trunk/Source/WebCore/ChangeLog 2013-04-09 16:46:49 UTC (rev 148027)
+++ trunk/Source/WebCore/ChangeLog 2013-04-09 16:52:36 UTC (rev 148028)
@@ -1,3 +1,17 @@
+2013-04-09 Jeff Rogers <[email protected]>
+
+ Add webp to supported image mime types if WEBP feature is enabled/used
+ https://bugs.webkit.org/show_bug.cgi?id=112819
+
+ Reviewed by Darin Adler.
+
+ Add WebP to list of supported image types in MIMETypeRegistry if enabled.
+
+ No new tests: WebP image decoding already covered by exisiting tests.
+
+ * platform/MIMETypeRegistry.cpp:
+ (WebCore::initializeSupportedImageMIMETypes):
+
2013-04-09 Arnaud Renevier <[email protected]>
Whitespace in particular source code changes rendering; does not in Firefox
Modified: trunk/Source/WebCore/platform/MIMETypeRegistry.cpp (148027 => 148028)
--- trunk/Source/WebCore/platform/MIMETypeRegistry.cpp 2013-04-09 16:46:49 UTC (rev 148027)
+++ trunk/Source/WebCore/platform/MIMETypeRegistry.cpp 2013-04-09 16:52:36 UTC (rev 148028)
@@ -244,6 +244,11 @@
supportedImageResourceMIMETypes->add(types[i]);
}
+#if USE(WEBP)
+ supportedImageMIMETypes->add("image/webp");
+ supportedImageResourceMIMETypes->add("image/webp");
+#endif
+
#if PLATFORM(QT)
#if QT_VERSION >= QT_VERSION_CHECK(5, 1, 0)
QList<QByteArray> mimeTypes = QImageReader::supportedMimeTypes();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes