| Index: third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp
|
| diff --git a/third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp b/third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp
|
| index 0e12da8491b7094abc87fe1dd4647a97b07fd634..44ee333ebd34b0c0b1633e22846de4e814e78ff4 100644
|
| --- a/third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp
|
| +++ b/third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp
|
| @@ -468,17 +468,16 @@ void PNGImageDecoder::FrameComplete() {
|
| buffer.SetStatus(ImageFrame::kFrameComplete);
|
| }
|
|
|
| -bool PNGImageDecoder::FrameIsCompleteAtIndex(size_t index) const {
|
| +bool PNGImageDecoder::FrameIsReceivedAtIndex(size_t index) const {
|
| if (!IsDecodedSizeAvailable())
|
| return false;
|
|
|
| DCHECK(!Failed() && reader_);
|
|
|
| - // For non-animated images, return whether the status of the frame is
|
| - // ImageFrame::FrameComplete with ImageDecoder::FrameIsCompleteAtIndex.
|
| + // For non-animated images, return ImageDecoder::FrameIsReceivedAtIndex.
|
| // This matches the behavior of WEBPImageDecoder.
|
| if (reader_->ParseCompleted() && reader_->FrameCount() == 1)
|
| - return ImageDecoder::FrameIsCompleteAtIndex(index);
|
| + return ImageDecoder::FrameIsReceivedAtIndex(index);
|
|
|
| return reader_->FrameIsReceivedAtIndex(index);
|
| }
|
|
|