Back out changeset 61baabe617c9 (bug 1191539) because of regressions like bug 1205863 and probably bug 1206209.

This commit is contained in:
Markus Stange 2015-09-20 01:14:15 +02:00
parent 84c12e413c
commit fcb4e1315b

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);
float h = alignmentY * ceil(screenRect.height / alignmentY);
float w = alignmentX * ceil(screenRect.width / alignmentX + 1);
float h = alignmentY * ceil(screenRect.height / alignmentY + 1);
screenRect = ScreenRect(x, y, w, h);
screenRect -= scrollPosScreen;