From 77594807f8414a3a575b5178570a4e87d7403d44 Mon Sep 17 00:00:00 2001 From: Michael Ventnor Date: Tue, 8 Jul 2008 00:43:00 -0500 Subject: [PATCH] Bug 439343 - "Crash [@ _moz_cairo_surface_set_device_offset ] with text-shadow, large text-indent, font-size and letter-spacing" [p=ventnor.bugzilla@gmail.com (Michael Ventnor) r+sr=roc] --- layout/base/nsCSSRendering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,