Bug 433047 - Rendering artifacts in APNG frame. r=joedrew

This commit is contained in:
Glenn Randers-Pehrson 2010-06-16 18:54:18 +02:00
parent 10fb7f9881
commit 2fdb1a2d73

View File

@ -1624,7 +1624,8 @@ nsresult imgContainer::DoComposite(imgFrame** aFrameToUse,
return rv;
}
needToBlankComposite = PR_TRUE;
} else if (aNextFrameIndex == 1) {
} else if (aNextFrameIndex != mAnim->lastCompositedFrameIndex+1) {
// When we are looping the compositing frame needs to be cleared.
needToBlankComposite = PR_TRUE;
}