Bug 757346 followup, actually compile

This commit is contained in:
Nicholas Cameron 2012-06-26 10:15:15 +12:00
parent 90e38cb124
commit 00ede18308
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ public:
nsRefPtr<gfxImageSurface> imageSurface = surface->GetAsImageSurface();
NS_ASSERTION(imageSurface, "Surface cannot be converted to a gfxImageSurface");
#endif
return surface;
return surface.forget();
}
already_AddRefed<gfxASurface> OptimizeImage(gfxImageSurface *aSurface,

View File

@ -709,7 +709,7 @@ gfxWindowsPlatform::CreateOffscreenSurface(const gfxIntSize& size,
NS_IF_ADDREF(surf);
return surf;
return surf.forget();
}
already_AddRefed<gfxASurface>