b=376446, spurious white pixels in animated gifs; r=asmith15, sr=pavlov -- patch from alfredkayser@nl.ibm.com

This commit is contained in:
vladimir%pobox.com 2007-05-30 08:40:45 +00:00
Родитель 5185bcbe3c
Коммит d5f034865b
1 изменённых файлов: 2 добавлений и 4 удалений

Просмотреть файл

@ -443,8 +443,7 @@ NS_IMETHODIMP imgContainer::Notify(nsITimer *timer)
// currentDecodingFrameIndex is not set until the second frame has
// finished decoding (see EndFrameDecode)
if (mAnim->doneDecoding ||
(numFrames == 2 && nextFrameIndex < 2) ||
(numFrames > 2 && nextFrameIndex < mAnim->currentDecodingFrameIndex)) {
(nextFrameIndex < mAnim->currentDecodingFrameIndex)) {
if (numFrames == nextFrameIndex) {
// End of Animation
@ -472,8 +471,7 @@ NS_IMETHODIMP imgContainer::Notify(nsITimer *timer)
}
nextFrame->GetTimeout(&timeout);
} else if ((numFrames == 2 && nextFrameIndex == 2) ||
(numFrames > 2 && nextFrameIndex == mAnim->currentDecodingFrameIndex)) {
} else if (nextFrameIndex == mAnim->currentDecodingFrameIndex) {
// Uh oh, the frame we want to show is currently being decoded (partial)
// Wait a bit and try again
mAnim->timer->SetDelay(100);