Bug 781380 - Follow-up fix for a change that was lost in the original landing. r=ajones
authorRyan VanderMeulen <ryanvm@gmail.com>
Tue, 28 Aug 2012 20:55:20 -0400
changeset 105768 625f746bedf959afeea510e98feba7b0f0295cc5
parent 105767 f70ebe7aad83a02d53e3eb56c488d82a06b66da8
child 105769 4a4696fcfd03c2a81c4f442fdab6a5ab9da37dc0
push id55
push usershu@rfrn.org
push dateThu, 30 Aug 2012 01:33:09 +0000
reviewersajones
bugs781380
milestone18.0a1
Bug 781380 - Follow-up fix for a change that was lost in the original landing. r=ajones
gfx/2d/DrawTargetCairo.cpp
--- a/gfx/2d/DrawTargetCairo.cpp
+++ b/gfx/2d/DrawTargetCairo.cpp
@@ -798,17 +798,17 @@ TemporaryRef<DrawTarget>
 DrawTargetCairo::CreateSimilarDrawTarget(const IntSize &aSize, SurfaceFormat aFormat) const
 {
   cairo_surface_t* similar = cairo_surface_create_similar(cairo_get_target(mContext),
                                                           GfxFormatToCairoContent(aFormat),
                                                           aSize.width, aSize.height);
 
   if (!cairo_surface_status(similar)) {
     RefPtr<DrawTargetCairo> target = new DrawTargetCairo();
-    target->Init(similar, aSize);
+    target->InitAlreadyReferenced(similar, aSize);
     return target;
   }
 
   return nullptr;
 }
 
 bool
 DrawTargetCairo::InitAlreadyReferenced(cairo_surface_t* aSurface, const IntSize& aSize)