mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
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:
parent
2d2a7cf733
commit
30a1ad2268
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user