mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 1059807 - Mark OSX printing surfaces as being write-only. r=roc
--HG-- extra : rebase_source : 99dfc5866c7a5c1294473b7d0e6a099916463b04
This commit is contained in:
parent
460ce4e3e7
commit
4bd1ef5a6a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user