From 53cc22904da0ba85e52a4fd3391675d6e2a54006 Mon Sep 17 00:00:00 2001 From: Robert O'Callahan Date: Wed, 18 Jul 2012 01:02:07 -0400 Subject: [PATCH] Bug 772726. Part 2: When BasicLayers is compositing directly to an Azure DrawTarget, Transform3D should handle the destination not having a CurrentSurface. r=mattwoodrow --HG-- extra : rebase_source : 838f6b643d9ab4ca10a0bf9612eb2081e728288f --- gfx/layers/basic/BasicLayerManager.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gfx/layers/basic/BasicLayerManager.cpp b/gfx/layers/basic/BasicLayerManager.cpp index 2388af5a811..54ced4ca105 100644 --- a/gfx/layers/basic/BasicLayerManager.cpp +++ b/gfx/layers/basic/BasicLayerManager.cpp @@ -617,8 +617,7 @@ Transform3D(gfxASurface* aSource, gfxContext* aDest, // Create a surface the size of the transformed object. nsRefPtr dest = aDest->CurrentSurface(); - nsRefPtr destImage = dest->GetAsImageSurface(); - destImage = nsnull; + nsRefPtr destImage; gfxPoint offset; bool blitComplete; if (!destImage || aDontBlit || !aDest->ClipContainsRect(destRect)) {