From fb245eb8aba1394379933b2a22aeb7091250858c Mon Sep 17 00:00:00 2001 From: Robert O'Callahan Date: Fri, 10 Apr 2009 13:15:47 +1200 Subject: [PATCH] Bug 485121. The screen coordinates for an element should be snapped to the nearest screen pixel, not rounded out, for consistency with the way we position native widgets and snap rectangle drawing. r=dbaron --HG-- extra : rebase_source : d76f8fa9b8b9096ad833708a913e9af05b22dcea --- layout/generic/nsFrame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/generic/nsFrame.cpp b/layout/generic/nsFrame.cpp index 7e20c0a35c21..2cf5e94deed1 100644 --- a/layout/generic/nsFrame.cpp +++ b/layout/generic/nsFrame.cpp @@ -3600,7 +3600,7 @@ nsIntRect nsIFrame::GetScreenRectExternal() const nsIntRect nsIFrame::GetScreenRect() const { - return nsRect::ToOutsidePixels(GetScreenRectInAppUnits(), PresContext()->AppUnitsPerDevPixel()); + return nsRect::ToNearestPixels(GetScreenRectInAppUnits(), PresContext()->AppUnitsPerDevPixel()); } // virtual