Bug 1152838 - Correctly inflate valid regions to tile boundaries. r=mattwoodrow

This commit is contained in:
Markus Stange 2015-04-09 12:07:16 -04:00
parent 923e86042f
commit c2e3306249

View File

@ -426,7 +426,7 @@ ClientTiledPaintedLayer::RenderLayer()
// we always have valid content or transparent pixels to sample from.
nsIntRect bounds = neededRegion.GetBounds();
nsIntRect wholeTiles = bounds;
wholeTiles.Inflate(nsIntSize(
wholeTiles.InflateToMultiple(nsIntSize(
gfxPlatform::GetPlatform()->GetTileWidth(),
gfxPlatform::GetPlatform()->GetTileHeight()));
nsIntRect padded = bounds;