diff --git a/layout/svg/nsSVGIntegrationUtils.cpp b/layout/svg/nsSVGIntegrationUtils.cpp index 504a144f442d..510adcf93dcb 100644 --- a/layout/svg/nsSVGIntegrationUtils.cpp +++ b/layout/svg/nsSVGIntegrationUtils.cpp @@ -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;