Bug 1319667 - (follow-up) Remove incorrect assertion. r=me
authorcku <cku@mozilla.com>
Thu, 01 Dec 2016 17:13:18 +0800
changeset 324989 c63c761e089c36a9065c9ca5f019c87dddabd816
parent 324988 78e008ce3a8c40c79f41567ede23e7de83d614dc
child 324990 db70aca765dc6400864e16701f4c9d42866ad713
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersme
bugs1319667
milestone53.0a1
Bug 1319667 - (follow-up) Remove incorrect assertion. r=me If the size of mask is empty, we wil hit this assertion, which is wrong. MozReview-Commit-ID: LgulkGPsjyH
layout/svg/nsSVGIntegrationUtils.cpp
--- a/layout/svg/nsSVGIntegrationUtils.cpp
+++ b/layout/svg/nsSVGIntegrationUtils.cpp
@@ -887,17 +887,16 @@ nsSVGIntegrationUtils::PaintMaskAndClipP
       SetupContextMatrix(frame, aParams, offsetToBoundingBox,
                          offsetToUserSpace, false);
       MaskPaintResult paintResult =
         CreateAndPaintMaskSurface(aParams, maskUsage.opacity,
                                   firstFrame->StyleContext(),
                                   maskFrames, offsetToUserSpace);
 
       if (paintResult.transparentBlackMask) {
-        MOZ_ASSERT(paintResult.result != DrawResult::SUCCESS);
         return paintResult.result;
       }
 
       result &= paintResult.result;
       maskSurface = paintResult.maskSurface;
       if (maskSurface) {
         MOZ_ASSERT(paintResult.result == DrawResult::SUCCESS);
         shouldPushMask = true;