Bug 1191539 - Don't further increase the size of the displayport when rounding up. r=kats

--HG--
extra : commitid : 4Y78gwVp4Zq
This commit is contained in:
Benoit Girard 2015-09-15 16:45:02 -04:00
parent 2d2a7cf733
commit 30a1ad2268

View File

@ -961,8 +961,8 @@ GetDisplayPortFromMarginsData(nsIContent* aContent,
// Round-out the display port to the nearest alignment (tiles)
float x = alignmentX * floor(screenRect.x / alignmentX);
float y = alignmentY * floor(screenRect.y / alignmentY);
float w = alignmentX * ceil(screenRect.width / alignmentX + 1);
float h = alignmentY * ceil(screenRect.height / alignmentY + 1);
float w = alignmentX * ceil(screenRect.width / alignmentX);
float h = alignmentY * ceil(screenRect.height / alignmentY);
screenRect = ScreenRect(x, y, w, h);
screenRect -= scrollPosScreen;