From 224247103e4f72755e5d393ed2b441f25a39e128 Mon Sep 17 00:00:00 2001 From: Robert O'Callahan Date: Fri, 12 Dec 2008 21:14:26 +1300 Subject: [PATCH] Bug 448243. When nsSVGFilterInstance needs to create a dummy input image, create one of the right size. r=jwatt,sr=mats --- layout/svg/base/src/nsSVGFilterInstance.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/layout/svg/base/src/nsSVGFilterInstance.cpp b/layout/svg/base/src/nsSVGFilterInstance.cpp index 2f72dca030a5..64618ba6a1bb 100644 --- a/layout/svg/base/src/nsSVGFilterInstance.cpp +++ b/layout/svg/base/src/nsSVGFilterInstance.cpp @@ -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; }