| Index: third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp
|
| diff --git a/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp b/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp
|
| index 307e6a4f93d4c67f6793c152bb4172390813ec37..ea03704ba925dac0a9468124c7e07d8750306879 100644
|
| --- a/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp
|
| +++ b/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp
|
| @@ -157,10 +157,8 @@ bool GIFImageDecoder::haveDecodedRow(size_t frameIndex,
|
| if ((sourceValue != transparentPixel) &&
|
| (sourceValue < colorTable.size())) {
|
| *currentAddress = colorTableIter[sourceValue];
|
| - } else {
|
| + } else
|
| *currentAddress = 0;
|
| - m_currentBufferSawAlpha = true;
|
| - }
|
| }
|
| } else {
|
| for (; rowBegin != rowEnd; ++rowBegin, ++currentAddress) {
|
| @@ -168,8 +166,6 @@ bool GIFImageDecoder::haveDecodedRow(size_t frameIndex,
|
| if ((sourceValue != transparentPixel) &&
|
| (sourceValue < colorTable.size()))
|
| *currentAddress = colorTableIter[sourceValue];
|
| - else
|
| - m_currentBufferSawAlpha = true;
|
| }
|
| }
|
|
|
| @@ -191,9 +187,6 @@ bool GIFImageDecoder::frameComplete(size_t frameIndex) {
|
| if (!initFrameBuffer(frameIndex))
|
| return setFailed();
|
|
|
| - if (!m_currentBufferSawAlpha)
|
| - correctAlphaWhenFrameBufferSawNoAlpha(frameIndex);
|
| -
|
| m_frameBufferCache[frameIndex].setStatus(ImageFrame::FrameComplete);
|
|
|
| return true;
|
| @@ -269,10 +262,6 @@ void GIFImageDecoder::parse(GIFParseQuery query) {
|
| setFailed();
|
| }
|
|
|
| -void GIFImageDecoder::onInitFrameBuffer(size_t frameIndex) {
|
| - m_currentBufferSawAlpha = false;
|
| -}
|
| -
|
| bool GIFImageDecoder::canReusePreviousFrameBuffer(size_t frameIndex) const {
|
| DCHECK(frameIndex < m_frameBufferCache.size());
|
| return m_frameBufferCache[frameIndex].getDisposalMethod() !=
|
|
|