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 98cf4c17fa
commit 53cc22904d

View File

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