Bug 1059807 - Mark OSX printing surfaces as being write-only. r=roc

--HG--
extra : rebase_source : 99dfc5866c7a5c1294473b7d0e6a099916463b04
This commit is contained in:
Matt Woodrow 2014-09-03 14:40:42 +12:00
parent 460ce4e3e7
commit 4bd1ef5a6a

View File

@ -399,6 +399,10 @@ nsDeviceContext::CreateRenderingContext()
gfxPlatform::GetPlatform()->CreateDrawTargetForSurface(printingSurface,
gfx::IntSize(mWidth, mHeight));
#ifdef XP_MACOSX
dt->AddUserData(&gfxContext::sDontUseAsSourceKey, dt, nullptr);
#endif
pContext->Init(this, dt);
pContext->ThebesContext()->SetFlag(gfxContext::FLAG_DISABLE_SNAPPING);
pContext->Scale(mPrintingScale, mPrintingScale);