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

Unified Diff: Source/platform/MIMETypeRegistry.cpp

Issue 1302423004: Support lossy and lossless <canvas>.toDataURL for webp (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 8887aeddc4f47e91c5b8a8d0af1e715051aa0f8c..c845be05c0289a892526e077fc38dd188cb24ffe 100644
--- a/Source/platform/MIMETypeRegistry.cpp
+++ b/Source/platform/MIMETypeRegistry.cpp
@@ -87,7 +87,7 @@ bool MIMETypeRegistry::isSupportedImageMIMETypeForEncoding(const String& mimeTyp
{
if (equalIgnoringCase(mimeType, "image/jpeg") || equalIgnoringCase(mimeType, "image/png"))
return true;
- if (equalIgnoringCase(mimeType, "image/webp"))
+ if (equalIgnoringCase(mimeType, "image/webp") || equalIgnoringCase(mimeType, "image/webplossless"))
return true;
return false;
}

Powered by Google App Engine
This is Rietveld 408576698