зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
1a7886ee8c
Коммит
224247103e
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче