mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-01 05:43:46 +00:00
Bug 1084136 (Part 4) - Record STATUS_DECODE_COMPLETE even if there's an error. r=tn
--HG-- extra : rebase_source : 9d5ba3964faf1fe2d28020050a0d89fa5cbc5bb0
This commit is contained in:
parent
82938e4154
commit
07645410f4
@ -699,13 +699,13 @@ imgStatusTracker::SendStopFrame(imgRequestProxy* aProxy)
|
||||
void
|
||||
imgStatusTracker::RecordStopDecode(nsresult aStatus)
|
||||
{
|
||||
NS_ABORT_IF_FALSE(mImage,
|
||||
"RecordStopDecode called before we have an Image");
|
||||
MOZ_ASSERT(mImage, "RecordStopDecode called before we have an Image");
|
||||
|
||||
mState |= FLAG_DECODE_STOPPED;
|
||||
mImageStatus |= imgIRequest::STATUS_DECODE_COMPLETE;
|
||||
mImageStatus &= ~imgIRequest::STATUS_DECODE_STARTED;
|
||||
|
||||
if (NS_SUCCEEDED(aStatus) && !(mImageStatus & imgIRequest::STATUS_ERROR)) {
|
||||
mImageStatus |= imgIRequest::STATUS_DECODE_COMPLETE;
|
||||
mImageStatus &= ~imgIRequest::STATUS_DECODE_STARTED;
|
||||
mHasBeenDecoded = true;
|
||||
} else {
|
||||
mImageStatus |= imgIRequest::STATUS_ERROR;
|
||||
|
Loading…
Reference in New Issue
Block a user