| 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 64f5b0a215e0cdaf9ee2ad44d64f257cfb7b1939..9908c4fa5868423075638d82db31f9fdc2afea94 100644
|
| --- a/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
|
| @@ -219,7 +219,7 @@ static PassRefPtr<StaticBitmapImage> cropImage(Image* image, const ParsedOptions
|
|
|
| RefPtr<SkImage> skiaImage = image->imageForCurrentFrame();
|
| // Attempt to get raw unpremultiplied image data, executed only when skiaImage is premultiplied.
|
| - if ((((!parsedOptions.premultiplyAlpha && !skiaImage->isOpaque()) || !skiaImage) && image->data() && imageFormat == PremultiplyAlpha) || colorSpaceOp == ImageDecoder::GammaAndColorProfileIgnored) {
|
| + if ((((!parsedOptions.premultiplyAlpha && !skiaImage->isOpaque()) || !skiaImage) && image->data() && imageFormat == PremultiplyAlpha) || colorSpaceOp == ImageDecoder::GammaAndColorProfileNotApplied) {
|
| std::unique_ptr<ImageDecoder> decoder(ImageDecoder::create(
|
| ImageDecoder::determineImageType(*(image->data())),
|
| parsedOptions.premultiplyAlpha ? ImageDecoder::AlphaPremultiplied : ImageDecoder::AlphaNotPremultiplied,
|
| @@ -285,7 +285,7 @@ ImageBitmap::ImageBitmap(HTMLImageElement* image, Optional<IntRect> cropRect, Do
|
| ParsedOptions parsedOptions = parseOptions(options, cropRect, image->bitmapSourceSize());
|
|
|
| if (options.colorSpaceConversion() == "none")
|
| - m_image = cropImage(input.get(), parsedOptions, PremultiplyAlpha, ImageDecoder::GammaAndColorProfileIgnored);
|
| + m_image = cropImage(input.get(), parsedOptions, PremultiplyAlpha, ImageDecoder::GammaAndColorProfileNotApplied);
|
| else
|
| m_image = cropImage(input.get(), parsedOptions, PremultiplyAlpha, ImageDecoder::GammaAndColorProfileApplied);
|
| if (!m_image)
|
|
|