зеркало из https://github.com/mozilla/pjs.git
Bug 632696: Silently fail if we can't allocate a white-background image. r=mattwoodrow a=bustage
This commit is contained in:
Родитель
d2a6b37b43
Коммит
4d2e6308e0
|
@ -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
|
||||||
|
|
Загрузка…
Ссылка в новой задаче