fixup draft
authorAlexis Beingessner <a.beingessner@gmail.com>
Wed, 11 Apr 2018 14:23:30 -0400
changeset 780678 63fcc3af4e344aa4451661959430012c978daf6a
parent 780630 d12b9dbf6c70210d1f601ef3d4877dcd7d2d25a4
push id106081
push userbmo:a.beingessner@gmail.com
push dateWed, 11 Apr 2018 19:41:17 +0000
milestone61.0a1
fixup
layout/painting/nsDisplayList.cpp
--- a/layout/painting/nsDisplayList.cpp
+++ b/layout/painting/nsDisplayList.cpp
@@ -9660,16 +9660,20 @@ nsDisplayMask::CreateWebRenderCommands(m
   if (mask) {
     auto layoutBounds = wr::ToRoundedLayoutRect(bounds);
     wr::WrClipId clipId = aBuilder.DefineClip(Nothing(), Nothing(),
         layoutBounds, nullptr, mask.ptr());
 
     // Create a new stacking context to attach the mask to, ensuring the mask is
     // applied to the aggregate, and not the individual elements.
 
+    // The stacking context shouldn't have any offset.
+    layoutBounds.origin.x = 0;
+    layoutBounds.origin.y = 0;
+
     aBuilder.PushStackingContext(/*aBounds: */ layoutBounds,
                                  /*aClipNodeId: */ &clipId,
                                  /*aAnimation: */ nullptr,
                                  /*aOpacity: */ nullptr,
                                  /*aTransform: */ nullptr,
                                  /*aTransformStyle: */ wr::TransformStyle::Flat,
                                  /*aPerspective: */ nullptr,
                                  /*aMixBlendMode: */ wr::MixBlendMode::Normal,