зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
5f8c7d9f79
Коммит
9183b4e1bd
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче