diff --git a/gfx/layers/wr/WebRenderCommandBuilder.cpp b/gfx/layers/wr/WebRenderCommandBuilder.cpp index f7b5b4203dfa..3a72a35464bd 100644 --- a/gfx/layers/wr/WebRenderCommandBuilder.cpp +++ b/gfx/layers/wr/WebRenderCommandBuilder.cpp @@ -1525,10 +1525,6 @@ void WebRenderCommandBuilder::DoGroupingForDisplayList( group.mAppUnitsPerDevPixel = appUnitsPerDevPixel; group.mImageBounds = layerBounds.ToUnknownRect(); group.mClippedImageBounds = group.mImageBounds; - // XXX: Make the paint rect relative to the layer bounds. After we include - // mLayerBounds.TopLeft() in the blob image we want to stop doing this - // adjustment. - group.mVisibleRect = group.mVisibleRect - group.mLayerBounds.TopLeft(); g.mTransform = Matrix::Scaling(scale.width, scale.height) .PostTranslate(residualOffset.x, residualOffset.y);