зеркало из https://github.com/mozilla/pjs.git
bug 139176 patch by paper r=biesi sr=tor
Animated gif with no global palette puts garbage in transparent area on first loop
This commit is contained in:
Родитель
2a210e5b59
Коммит
1addf31e03
|
@ -168,7 +168,6 @@ NS_IMETHODIMP imgContainer::AppendFrame(gfxIImageFrame *item)
|
|||
|
||||
if (NS_SUCCEEDED(firstFrame->GetBackgroundColor(&backgroundColor))) {
|
||||
mCompositingFrame->SetBackgroundColor(backgroundColor);
|
||||
BlackenFrame(mCompositingFrame);
|
||||
}
|
||||
|
||||
PRInt32 x;
|
||||
|
@ -180,6 +179,7 @@ NS_IMETHODIMP imgContainer::AppendFrame(gfxIImageFrame *item)
|
|||
firstFrame->GetWidth(&width);
|
||||
firstFrame->GetHeight(&height);
|
||||
|
||||
BlackenFrame(mCompositingFrame);
|
||||
firstFrame->DrawTo(mCompositingFrame, x, y, width, height);
|
||||
ZeroMask(mCompositingFrame);
|
||||
BuildCompositeMask(mCompositingFrame, firstFrame);
|
||||
|
|
Загрузка…
Ссылка в новой задаче