diff --git a/layout/base/nsCSSRendering.cpp b/layout/base/nsCSSRendering.cpp index cd4cfb132c7..ecf93b3cb6d 100644 --- a/layout/base/nsCSSRendering.cpp +++ b/layout/base/nsCSSRendering.cpp @@ -4836,7 +4836,7 @@ nsContextBoxBlur::Init(const gfxRect& aRect, nscoord aBlurRadius, // to create a blur effect. mImageSurface = new gfxImageSurface(gfxIntSize(mRect.Width(), mRect.Height()), gfxASurface::ImageFormatA8); - if (!mImageSurface) + if (!mImageSurface || mImageSurface->CairoStatus()) return nsnull; // Use a device offset so callers don't need to worry about translating coordinates,