Backed out changeset 5be8148fea1f (bug 991767) for bustage.
authorRyan VanderMeulen <ryanvm@gmail.com>
Fri, 11 Apr 2014 13:21:44 -0400
changeset 183706 8d21ce8b440a1755a53494dd099e37b4e22d45ab
parent 183705 5be8148fea1f002fae2f286dff5785cff8656998
child 183707 8b66928d0515ef777f8977d0359e2c375fe48f1e
push id3454
push userryanvm@gmail.com
push dateFri, 11 Apr 2014 17:20:42 +0000
treeherdermozilla-beta@8d21ce8b440a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs991767
milestone29.0
backs out5be8148fea1f002fae2f286dff5785cff8656998
Backed out changeset 5be8148fea1f (bug 991767) for bustage.
gfx/src/nsDeviceContext.cpp
--- a/gfx/src/nsDeviceContext.cpp
+++ b/gfx/src/nsDeviceContext.cpp
@@ -400,21 +400,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