Bug 1299715 - Part 4. Correct clip region for clip-path mask surface. r=mstange

MozReview-Commit-ID: IOFOyS18yRm

--HG--
extra : rebase_source : e322b19333b6b97f879ed2e668faeffc6a1cc87c
This commit is contained in:
cku 2016-10-06 14:55:55 +08:00
Родитель bedd15c17a
Коммит 84d4f4c4c5
1 изменённых файлов: 1 добавлений и 2 удалений

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

@ -852,13 +852,12 @@ nsSVGIntegrationUtils::PaintMaskAndClipPath(const PaintFramesParams& aParams)
matSR.SetContext(&context); matSR.SetContext(&context);
SetupContextMatrix(firstFrame, aParams, offsetToBoundingBox, SetupContextMatrix(firstFrame, aParams, offsetToBoundingBox,
offsetToUserSpace, true); offsetToUserSpace, false);
Matrix clippedMaskTransform; Matrix clippedMaskTransform;
RefPtr<SourceSurface> clipMaskSurface = RefPtr<SourceSurface> clipMaskSurface =
clipPathFrame->GetClipMask(context, frame, cssPxToDevPxMatrix, clipPathFrame->GetClipMask(context, frame, cssPxToDevPxMatrix,
&clippedMaskTransform, maskSurface, &clippedMaskTransform, maskSurface,
maskTransform, &result); maskTransform, &result);
context.PopClip();
if (clipMaskSurface) { if (clipMaskSurface) {
maskSurface = clipMaskSurface; maskSurface = clipMaskSurface;