Bug 772726. Part 2: When BasicLayers is compositing directly to an Azure DrawTarget, Transform3D should handle the destination not having a CurrentSurface. r=mattwoodrow

This commit is contained in:
Robert O'Callahan
2012-07-18 01:02:07 -04:00
parent 9c7487eac5
commit 289488cd34

View File

@@ -617,8 +617,7 @@ Transform3D(gfxASurface* aSource, gfxContext* aDest,
// Create a surface the size of the transformed object.
nsRefPtr<gfxASurface> dest = aDest->CurrentSurface();
nsRefPtr<gfxImageSurface> destImage = dest->GetAsImageSurface();
destImage = nsnull;
nsRefPtr<gfxImageSurface> destImage;
gfxPoint offset;
bool blitComplete;
if (!destImage || aDontBlit || !aDest->ClipContainsRect(destRect)) {