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
This commit is contained in:
Jeff Muizelaar 2019-09-10 17:48:41 +00:00
Родитель d3b795e0d2
Коммит 3f94bd9625
1 изменённых файлов: 0 добавлений и 4 удалений

Просмотреть файл

@ -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);