Bug 749118 - Translate the source correctly in RasterImage::CopyFrame. r=joe

This commit is contained in:
Matt Woodrow 2012-05-11 19:49:15 +12:00
parent 5939c267ea
commit a3e3a511ef

View File

@ -851,8 +851,9 @@ RasterImage::CopyFrame(PRUint32 aWhichFrame,
gfxASurface::ImageFormatARGB32);
gfxContext ctx(imgsurface);
ctx.SetOperator(gfxContext::OPERATOR_SOURCE);
ctx.SetPattern(pattern);
ctx.Rectangle(framerect);
ctx.Translate(framerect.TopLeft());
ctx.SetPattern(pattern);
ctx.Fill();
*_retval = imgsurface.forget().get();