Bug 1450249. blob-invalidation: Round the bounds. r=mstange

This fixes a number of reftest failures.

--HG--
extra : rebase_source : 70b934e9abadded46d1ef8a08d76e69a3e420852
This commit is contained in:
Jeff Muizelaar 2018-03-29 18:26:48 -04:00
parent 1875600259
commit 136be180bf

View File

@ -540,7 +540,10 @@ struct DIGroup
}
}
// Round the bounds in a way that matches the existing fallback code
LayoutDeviceRect bounds = LayoutDeviceRect::FromAppUnits(mGroupBounds, aGrouper->mAppUnitsPerDevPixel);
bounds = LayoutDeviceRect(RoundedToInt(bounds));
IntSize size = mGroupBounds.Size().ScaleToNearestPixels(mScale.width, mScale.height, aGrouper->mAppUnitsPerDevPixel);
if (mInvalidRect.IsEmpty()) {