зеркало из https://github.com/mozilla/gecko-dev.git
b=376446, spurious white pixels in animated gifs; r=asmith15, sr=pavlov -- patch from alfredkayser@nl.ibm.com
This commit is contained in:
Родитель
a756340730
Коммит
44e55eb2be
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче