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

Unified Diff: Source/core/html/HTMLImageElement.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/core/html/HTMLImageElement.cpp
diff --git a/Source/core/html/HTMLImageElement.cpp b/Source/core/html/HTMLImageElement.cpp
index f8865cee2860b3afa49671d943b54a959f85b9da..4af51b2cbb757967ac1f42c0a4f51e0dc58b6f96 100644
--- a/Source/core/html/HTMLImageElement.cpp
+++ b/Source/core/html/HTMLImageElement.cpp
@@ -264,7 +264,7 @@ const AtomicString& HTMLImageElement::altText() const
static bool supportedImageType(const String& type)
{
- return MIMETypeRegistry::isSupportedImageResourceMIMEType(type);
+ return MIMETypeRegistry::isSupportedImagePrefixedMIMEType(type);
}
// http://picture.responsiveimages.org/#update-source-set

Powered by Google App Engine
This is Rietveld 408576698