зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
d3b795e0d2
Коммит
3f94bd9625
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче