Bug 991575 - Use a DrawTarget backed gfxContext for the PresShell reference rendering context. r=jwatt

This commit is contained in:
Matt Woodrow 2014-05-12 12:31:28 +12:00
parent d11d3ab343
commit 9b3539ecb8
2 changed files with 2 additions and 2 deletions

View File

@ -2303,7 +2303,7 @@ gfxContext::GetRoundOffsetsToPixels(bool *aRoundX, bool *aRoundY)
// AxisAlignedTransforms, but we leave things simple.
// Not much point rounding if a matrix will mess things up anyway.
// Also return false for non-cairo contexts.
if (CurrentMatrix().HasNonTranslation() || mDT) {
if (CurrentMatrix().HasNonTranslation()) {
*aRoundY = false;
return;
}

View File

@ -2908,7 +2908,7 @@ PresShell::CreateReferenceRenderingContext()
nsRefPtr<nsRenderingContext> rc;
if (mPresContext->IsScreen()) {
rc = new nsRenderingContext();
rc->Init(devCtx, gfxPlatform::GetPlatform()->ScreenReferenceSurface());
rc->Init(devCtx, gfxPlatform::GetPlatform()->ScreenReferenceDrawTarget());
} else {
rc = devCtx->CreateRenderingContext();
}