Backed out changeset c24d5055dc01 (bug 991767) for bustage.
authorRyan VanderMeulen <ryanvm@gmail.com>
Fri, 11 Apr 2014 13:21:19 -0400
changeset 192731 5fc53b821f69745a64878b000e0dbc8d9ea7ae00
parent 192730 0f91ec890d1d236bc9f9c23d3c3a0229983e0ae5
child 192732 03566d5096aff914d5c83c9775c9e32384610330
push id474
push userasasaki@mozilla.com
push dateMon, 02 Jun 2014 21:01:02 +0000
treeherdermozilla-release@967f4cf1b31c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs991767
milestone30.0a2
backs outc24d5055dc0184e1dc6fa3aa407df22901bd9721
Backed out changeset c24d5055dc01 (bug 991767) for bustage.
gfx/src/nsDeviceContext.cpp
--- a/gfx/src/nsDeviceContext.cpp
+++ b/gfx/src/nsDeviceContext.cpp
@@ -389,21 +389,17 @@ nsDeviceContext::CreateRenderingContext(
     // and EndPage().  But we can get away with fudging things here, if need
     // be, by using a cached copy.
     if (!printingSurface) {
       printingSurface = mCachedPrintingSurface;
     }
 #endif
     nsRefPtr<nsRenderingContext> pContext = new nsRenderingContext();
 
-    RefPtr<gfx::DrawTarget> dt =
-      gfxPlatform::GetPlatform()->CreateDrawTargetForSurface(printingSurface,
-                                                             gfx::IntSize(mWidth, mHeight));
-
-    pContext->Init(this, dt);
+    pContext->Init(this, printingSurface);
     pContext->Scale(mPrintingScale, mPrintingScale);
     aContext = pContext;
     NS_ADDREF(aContext);
 
     return NS_OK;
 }
 
 nsresult