зеркало из https://github.com/mozilla/gecko-dev.git
Bug 991767 - Use Moz2D for printing surfaces. r=roc
This commit is contained in:
Родитель
3a3af835aa
Коммит
2a7484aa1d
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче