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

Unified Diff: Source/platform/MIMETypeRegistry.h

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.h
diff --git a/Source/platform/MIMETypeRegistry.h b/Source/platform/MIMETypeRegistry.h
index fb4195ae6a493c2dab154098f03e3bfc3a9fa8f2..99fdf1b38a4ff5e00ac4e8e1441047aff573d981 100644
--- a/Source/platform/MIMETypeRegistry.h
+++ b/Source/platform/MIMETypeRegistry.h
@@ -48,6 +48,9 @@ public:
// document in a frame.
static bool isSupportedImageResourceMIMEType(const String& mimeType);
+ // Check to see if a mime type is a supported image format or an SVG.
+ static bool isSupportedImagePrefixedMIMEType(const String& mimeType);
+
// Check to see if a mime type is suitable for being encoded.
static bool isSupportedImageMIMETypeForEncoding(const String& mimeType);

Powered by Google App Engine
This is Rietveld 408576698