mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 13:21:28 +00:00
Bug 715916 - Check the result of GetFrame in RasterImage::GetImageContainer. r=joe
This commit is contained in:
parent
5dec878e54
commit
aaa4f09473
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user