Bug 1299715 - Part 5. Correct clip region for opacity surface. r=mstange

MozReview-Commit-ID: 1wiQKsHKJsg

--HG--
extra : rebase_source : 47b58288cdde10d9fae42bec33082ea90604957b
This commit is contained in:
cku 2016-10-07 12:42:35 +08:00
Родитель 84d4f4c4c5
Коммит 837190aa4f
1 изменённых файлов: 1 добавлений и 7 удалений

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

@ -875,7 +875,7 @@ nsSVGIntegrationUtils::PaintMaskAndClipPath(const PaintFramesParams& aParams)
matSR.SetContext(&context);
SetupContextMatrix(firstFrame, aParams, offsetToBoundingBox,
offsetToUserSpace, true);
offsetToUserSpace, false);
}
if (aParams.layerManager->GetRoot()->GetContentFlags() & Layer::CONTENT_COMPONENT_ALPHA) {
@ -920,12 +920,6 @@ nsSVGIntegrationUtils::PaintMaskAndClipPath(const PaintFramesParams& aParams)
if (shouldGenerateMask) {
context.PopGroupAndBlend();
if (!shouldGenerateClipMaskLayer && !shouldGenerateMaskLayer) {
MOZ_ASSERT(opacity != 1.0f);
// Pop the clip push by SetupContextMatrix
context.PopClip();
}
}
return result;