зеркало из 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))) {
|
if (NS_SUCCEEDED(firstFrame->GetBackgroundColor(&backgroundColor))) {
|
||||||
mCompositingFrame->SetBackgroundColor(backgroundColor);
|
mCompositingFrame->SetBackgroundColor(backgroundColor);
|
||||||
BlackenFrame(mCompositingFrame);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PRInt32 x;
|
PRInt32 x;
|
||||||
|
@ -180,6 +179,7 @@ NS_IMETHODIMP imgContainer::AppendFrame(gfxIImageFrame *item)
|
||||||
firstFrame->GetWidth(&width);
|
firstFrame->GetWidth(&width);
|
||||||
firstFrame->GetHeight(&height);
|
firstFrame->GetHeight(&height);
|
||||||
|
|
||||||
|
BlackenFrame(mCompositingFrame);
|
||||||
firstFrame->DrawTo(mCompositingFrame, x, y, width, height);
|
firstFrame->DrawTo(mCompositingFrame, x, y, width, height);
|
||||||
ZeroMask(mCompositingFrame);
|
ZeroMask(mCompositingFrame);
|
||||||
BuildCompositeMask(mCompositingFrame, firstFrame);
|
BuildCompositeMask(mCompositingFrame, firstFrame);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче