Bug 448243. When nsSVGFilterInstance needs to create a dummy input image, create one of the right size. r=jwatt,sr=mats

This commit is contained in:
Robert O'Callahan 2008-12-12 21:14:26 +13:00
parent 4e18b0296a
commit 6dbbdf56bd

View File

@ -479,8 +479,7 @@ nsSVGFilterInstance::Render(gfxASurface** aOutput)
if (!input->mImage.mImage) {
// This image data is not really going to be used, but we'd better
// have an image object here so the filter primitive doesn't die.
input->mImage.mImage =
new gfxImageSurface(gfxIntSize(1, 1), gfxASurface::ImageFormatARGB32);
input->mImage.mImage = CreateImage();
if (!input->mImage.mImage)
return NS_ERROR_OUT_OF_MEMORY;
}