mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 579492: Use dev pixels for screen rect in PresShell::PaintRangePaintInfo. r=roc a=dbaron
This commit is contained in:
parent
ea45199f0e
commit
996b8e29c8
@ -5540,7 +5540,9 @@ PresShell::PaintRangePaintInfo(nsTArray<nsAutoPtr<RangePaintInfo> >* aItems,
|
||||
|
||||
// if the area of the image is larger than the maximum area, scale it down
|
||||
float scale = 0.0;
|
||||
nsIntRect rootScreenRect = GetRootFrame()->GetScreenRect();
|
||||
nsIntRect rootScreenRect =
|
||||
GetRootFrame()->GetScreenRectInAppUnits().ToNearestPixels(
|
||||
pc->AppUnitsPerDevPixel());
|
||||
|
||||
// if the image is larger in one or both directions than half the size of
|
||||
// the available screen area, scale the image down to that size.
|
||||
|
Loading…
Reference in New Issue
Block a user