checking in fix for bug 86508 for nivedita@netscape.com. r=pavlov sr=tor@acm.org

git-svn-id: svn://10.0.0.236/trunk@114264 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pavlov%netscape.com 2002-02-12 06:37:45 +00:00
parent 6dec57cc40
commit ecb315a058

View File

@ -170,9 +170,17 @@ NS_IMETHODIMP imgContainer::AppendFrame(gfxIImageFrame *item)
FillWithColor(mCompositingFrame, 0);
}
ZeroMask(mCompositingFrame);
PRInt32 x;
PRInt32 y;
PRInt32 width;
PRInt32 height;
firstFrame->GetX(&x);
firstFrame->GetY(&y);
firstFrame->GetWidth(&width);
firstFrame->GetHeight(&height);
firstFrame->DrawTo(mCompositingFrame, 0, 0, mSize.width, mSize.height);
firstFrame->DrawTo(mCompositingFrame, x, y, width, height);
ZeroMask(mCompositingFrame);
BuildCompositeMask(mCompositingFrame, firstFrame);
}
}