Bug 632696: Silently fail if we can't allocate a white-background image. r=mattwoodrow a=bustage

This commit is contained in:
Chris Jones 2011-02-09 02:32:34 -06:00
Родитель d2a6b37b43
Коммит 4d2e6308e0
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -2761,6 +2761,9 @@ PluginInstanceChild::PaintRectWithAlphaExtraction(const nsIntRect& aRect,
// We always use a temporary "white image" // We always use a temporary "white image"
whiteImage = new gfxImageSurface(targetSize, gfxASurface::ImageFormatRGB24); whiteImage = new gfxImageSurface(targetSize, gfxASurface::ImageFormatRGB24);
if (whiteImage->CairoStatus()) {
return;
}
#ifdef XP_WIN #ifdef XP_WIN
// On windows, we need an HDC and so can't paint directly to // On windows, we need an HDC and so can't paint directly to