From 22a10efbc173a3865f271bc402c24365847ed627 Mon Sep 17 00:00:00 2001 From: "longsonr@gmail.com" Date: Tue, 4 Sep 2007 02:43:09 -0700 Subject: [PATCH] Bug 378575 - revert to image surface now that bug 383512 has landed. r+sr+a=tor --- layout/svg/base/src/nsSVGUtils.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/layout/svg/base/src/nsSVGUtils.cpp b/layout/svg/base/src/nsSVGUtils.cpp index 76c021dda5d5..186f7496f687 100644 --- a/layout/svg/base/src/nsSVGUtils.cpp +++ b/layout/svg/base/src/nsSVGUtils.cpp @@ -1359,9 +1359,8 @@ gfxASurface * nsSVGUtils::GetThebesComputationalSurface() { if (!mThebesComputationalSurface) { - nsRefPtr surface = - gfxPlatform::GetPlatform()->CreateOffscreenSurface(gfxIntSize(1, 1), - gfxASurface::ImageFormatARGB32); + nsRefPtr surface = + new gfxImageSurface(gfxIntSize(1, 1), gfxASurface::ImageFormatARGB32); NS_ASSERTION(surface && !surface->CairoStatus(), "Could not create offscreen surface"); mThebesComputationalSurface = surface;