mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 758533: Check that nsImageRenderer has an image when getting the container r=gal
This commit is contained in:
parent
308dfbb850
commit
0a3a5fbf6a
@ -4091,6 +4091,8 @@ nsImageRenderer::IsRasterImage()
|
||||
already_AddRefed<mozilla::layers::ImageContainer>
|
||||
nsImageRenderer::GetContainer()
|
||||
{
|
||||
if (mType != eStyleImageType_Image)
|
||||
return nsnull;
|
||||
nsCOMPtr<imgIContainer> img;
|
||||
nsresult rv = mImage->GetImageData()->GetImage(getter_AddRefs(img));
|
||||
if (NS_FAILED(rv) || !img)
|
||||
|
Loading…
Reference in New Issue
Block a user