mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 15:55:36 +00:00
Bug 1152838 - Correctly inflate valid regions to tile boundaries. r=mattwoodrow
--HG-- extra : rebase_source : a4a8f3b93e294f5c691eb1583582f7759858dd2b
This commit is contained in:
parent
ac9d8fb8d7
commit
177fc2a470
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user