From 3f94bd9625c4941cd30e2287b3cdd8849ca81e32 Mon Sep 17 00:00:00 2001 From: Jeff Muizelaar Date: Tue, 10 Sep 2019 17:48:41 +0000 Subject: [PATCH] Bug 1568227. Remove offset from visible rect. r=nical This stops making the visible rect relative to the bounds of the image. Differential Revision: https://phabricator.services.mozilla.com/D45324 --HG-- extra : moz-landing-system : lando --- gfx/layers/wr/WebRenderCommandBuilder.cpp | 4 ---- 1 file changed, 4 deletions(-) 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);