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

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: Patch for landing. Created 5 years, 3 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/core/html/HTMLCanvasElement.cpp ('k') | Source/platform/graphics/ImageBuffer.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 8887aeddc4f47e91c5b8a8d0af1e715051aa0f8c..aa054ccd482e08c400f7f70a6f1825ca6601b7be 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/webp.ll"))
return true;
return false;
}
« no previous file with comments | « Source/core/html/HTMLCanvasElement.cpp ('k') | Source/platform/graphics/ImageBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698