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

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: 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
Index: Source/platform/MIMETypeRegistry.cpp
diff --git a/Source/platform/MIMETypeRegistry.cpp b/Source/platform/MIMETypeRegistry.cpp
index 6ad609978febb98058722f9176e141e8a4ee549b..32d681e1fd93c40676211b161b7534b9f42de830 100644
--- a/Source/platform/MIMETypeRegistry.cpp
+++ b/Source/platform/MIMETypeRegistry.cpp
@@ -73,6 +73,12 @@ bool MIMETypeRegistry::isSupportedImageMIMEType(const String& mimeType)
!= blink::WebMimeRegistry::IsNotSupported;
}
+bool MIMETypeRegistry::isSupportedImagePrefixedMIMEType(const String& mimeType)
+{
+ return blink::Platform::current()->mimeRegistry()->supportsImagePrefixedMIMEType(mimeType.lower())
+ != blink::WebMimeRegistry::IsNotSupported;
+}
+
bool MIMETypeRegistry::isSupportedImageResourceMIMEType(const String& mimeType)
{
return isSupportedImageMIMEType(mimeType);

Powered by Google App Engine
This is Rietveld 408576698