Bug 715916 - Check the result of GetFrame in RasterImage::GetImageContainer. r=joe

This commit is contained in:
Matt Woodrow 2012-01-11 13:33:20 +13:00
parent 5dec878e54
commit aaa4f09473

View File

@ -954,7 +954,9 @@ RasterImage::GetImageContainer(LayerManager* aManager,
CairoImage::Data cairoData;
nsRefPtr<gfxASurface> imageSurface;
GetFrame(FRAME_CURRENT, FLAG_SYNC_DECODE, getter_AddRefs(imageSurface));
nsresult rv = GetFrame(FRAME_CURRENT, FLAG_SYNC_DECODE, getter_AddRefs(imageSurface));
NS_ENSURE_SUCCESS(rv, rv);
cairoData.mSurface = imageSurface;
GetWidth(&cairoData.mSize.width);
GetHeight(&cairoData.mSize.height);