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

--HG--
extra : rebase_source : a4a8f3b93e294f5c691eb1583582f7759858dd2b
This commit is contained in:
Markus Stange 2015-04-09 12:07:16 -04:00
parent ac9d8fb8d7
commit 177fc2a470

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;