mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 991767 - Use Moz2D for printing surfaces. r=roc
This commit is contained in:
parent
431e385b91
commit
f0f7cb8f20
@ -394,7 +394,11 @@ nsDeviceContext::CreateRenderingContext(nsRenderingContext *&aContext)
|
||||
#endif
|
||||
nsRefPtr<nsRenderingContext> pContext = new nsRenderingContext();
|
||||
|
||||
pContext->Init(this, printingSurface);
|
||||
RefPtr<gfx::DrawTarget> dt =
|
||||
gfxPlatform::GetPlatform()->CreateDrawTargetForSurface(printingSurface,
|
||||
gfx::IntSize(mWidth, mHeight));
|
||||
|
||||
pContext->Init(this, dt);
|
||||
pContext->Scale(mPrintingScale, mPrintingScale);
|
||||
aContext = pContext;
|
||||
NS_ADDREF(aContext);
|
||||
|
Loading…
Reference in New Issue
Block a user