Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1417)

Unified Diff: Source/platform/MIMETypeRegistry.cpp

Issue 430583002: Add SVG as a picture supported mime type (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Yet another changed approach Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/MIMETypeRegistry.h ('k') | public/platform/WebMimeRegistry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/MIMETypeRegistry.cpp
diff --git a/Source/platform/MIMETypeRegistry.cpp b/Source/platform/MIMETypeRegistry.cpp
index 6ad609978febb98058722f9176e141e8a4ee549b..d43a1ffbcd54555a6b74c0299f375bd51442312e 100644
--- a/Source/platform/MIMETypeRegistry.cpp
+++ b/Source/platform/MIMETypeRegistry.cpp
@@ -78,6 +78,12 @@ bool MIMETypeRegistry::isSupportedImageResourceMIMEType(const String& mimeType)
return isSupportedImageMIMEType(mimeType);
}
+bool MIMETypeRegistry::isSupportedImagePrefixedMIMEType(const String& mimeType)
+{
+ return blink::Platform::current()->mimeRegistry()->supportsImagePrefixedMIMEType(mimeType.lower())
+ != blink::WebMimeRegistry::IsNotSupported;
+}
+
bool MIMETypeRegistry::isSupportedImageMIMETypeForEncoding(const String& mimeType)
{
if (equalIgnoringCase(mimeType, "image/jpeg") || equalIgnoringCase(mimeType, "image/png"))
« no previous file with comments | « Source/platform/MIMETypeRegistry.h ('k') | public/platform/WebMimeRegistry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698