Bug 1305259 - Use PushGroupAndCopyBackground for the masked group so that we can have subpixel AA inside the mask / clip-path. r=cjku, r=Bas

MozReview-Commit-ID: 3J9ncPn9sij

--HG--
extra : rebase_source : 6f6fdf624a68827a02696899fc46df8433b21565
This commit is contained in:
Markus Stange 2016-09-30 21:22:30 -04:00
Родитель 5f8c7d9f79
Коммит 9183b4e1bd
1 изменённых файлов: 9 добавлений и 3 удалений

Просмотреть файл

@ -879,9 +879,15 @@ nsSVGIntegrationUtils::PaintMaskAndClipPath(const PaintFramesParams& aParams)
offsetToUserSpace, true);
}
context.PushGroupForBlendBack(gfxContentType::COLOR_ALPHA,
opacityApplied ? 1.0 : opacity,
maskSurface, maskTransform);
if (aParams.layerManager->GetRoot()->GetContentFlags() & Layer::CONTENT_COMPONENT_ALPHA) {
context.PushGroupAndCopyBackground(gfxContentType::COLOR_ALPHA,
opacityApplied ? 1.0 : opacity,
maskSurface, maskTransform);
} else {
context.PushGroupForBlendBack(gfxContentType::COLOR_ALPHA,
opacityApplied ? 1.0 : opacity,
maskSurface, maskTransform);
}
}
/* If this frame has only a trivial clipPath, set up cairo's clipping now so