| Index: third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp
|
| diff --git a/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp b/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp
|
| index 8a3b219e91213d6ac4c1ec1b2f7388b898b32ba3..d31b0dd576128f1d1dd3f7c309fa97b201d7695e 100644
|
| --- a/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp
|
| +++ b/third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp
|
| @@ -457,14 +457,11 @@ bool WEBPImageDecoder::decodeSingleFrame(const uint8_t* dataBytes,
|
| DCHECK_NE(buffer.getStatus(), ImageFrame::FrameComplete);
|
|
|
| if (buffer.getStatus() == ImageFrame::FrameEmpty) {
|
| - if (!buffer.setSizeAndColorSpace(size().width(), size().height(),
|
| - colorSpaceForSkImages()))
|
| + if (!buffer.allocatePixelData(size().width(), size().height(),
|
| + colorSpaceForSkImages()))
|
| return setFailed();
|
| + buffer.zeroFillPixelData();
|
| buffer.setStatus(ImageFrame::FramePartial);
|
| - // The buffer is transparent outside the decoded area while the image is
|
| - // loading. The correct alpha value for the frame will be set when it is
|
| - // fully decoded.
|
| - buffer.setHasAlpha(true);
|
| buffer.setOriginalFrameRect(IntRect(IntPoint(), size()));
|
| }
|
|
|
|
|