Bug 1305259 - Use PushGroupAndCopyBackground for the masked group so that we can have subpixel AA inside the mask / clip-path. r?cjku, r?Bas draft
authorMarkus Stange <mstange@themasta.com>
Sat, 24 Sep 2016 14:54:30 -0400
changeset 417396 697093d891f176906c4cd62b53a9b2691fad5da2
parent 416399 64aa23c4e7eed01cb1f1b49c047b06b019641611
child 532082 0e0ff45b9a74e0b5c6a6771d19dced920c2f96ab
push id30393
push userbmo:mstange@themasta.com
push dateSat, 24 Sep 2016 18:55:50 +0000
reviewerscjku, Bas
bugs1305259
milestone52.0a1
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: 2SRMGmqnkCD
layout/svg/nsSVGIntegrationUtils.cpp
--- a/layout/svg/nsSVGIntegrationUtils.cpp
+++ b/layout/svg/nsSVGIntegrationUtils.cpp
@@ -875,17 +875,17 @@ nsSVGIntegrationUtils::PaintMaskAndClipP
                                    maskTransform, &result);
 
       if (clipMaskSurface) {
         maskSurface = clipMaskSurface;
         maskTransform = clippedMaskTransform;
       }
     }
 
-    target->PushGroupForBlendBack(gfxContentType::COLOR_ALPHA, opacity, maskSurface, maskTransform);
+    target->PushGroupAndCopyBackground(gfxContentType::COLOR_ALPHA, opacity, maskSurface, maskTransform);
   }
 
   /* If this frame has only a trivial clipPath, set up cairo's clipping now so
    * we can just do normal painting and get it clipped appropriately.
    */
   if (shouldApplyClipPath) {
     context.Save();
     clipPathFrame->ApplyClipPath(context, frame, cssPxToDevPxMatrix);