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

Unified Diff: third_party/WebKit/Source/core/frame/ImageBitmap.cpp

Issue 1756963003: Add "premultiply" in ImageBitmapOptions enum PremultiplyAlpha (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change parseOptions Created 4 years, 10 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: third_party/WebKit/Source/core/frame/ImageBitmap.cpp
diff --git a/third_party/WebKit/Source/core/frame/ImageBitmap.cpp b/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
index fe8bd6ca42d3060a1558e5d30e10578c1f5c7c29..2b4e1dd436ddf49abd2594bf01f7f70136a2d310 100644
--- a/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
+++ b/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
@@ -429,7 +429,7 @@ void ImageBitmap::parseOptions(const ImageBitmapOptions& options, bool& flipY)
if (options.premultiplyAlpha() == imageBitmapOptionNone) {
m_isPremultiplied = false;
} else {
- ASSERT(options.premultiplyAlpha() == "default");
+ ASSERT(options.premultiplyAlpha() == "default" || options.premultiplyAlpha() == "premultiply");
}
}

Powered by Google App Engine
This is Rietveld 408576698