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
This commit is contained in:
Robert O'Callahan 2012-07-18 01:02:07 -04:00
parent 0be0d048a2
commit fc590c6356

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)) {