From b2229fff0f57308e40931d576ec43d962e3c9ede Mon Sep 17 00:00:00 2001 From: Jonathan Kew Date: Fri, 18 Feb 2011 09:46:27 +0000 Subject: [PATCH] Backed out changeset 26c7b580d5a2 (bug 622507) due to orange. a=backout --- layout/xul/base/src/nsMenuPopupFrame.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/layout/xul/base/src/nsMenuPopupFrame.cpp b/layout/xul/base/src/nsMenuPopupFrame.cpp index 5184e87e906..78ab4a07995 100644 --- a/layout/xul/base/src/nsMenuPopupFrame.cpp +++ b/layout/xul/base/src/nsMenuPopupFrame.cpp @@ -1273,10 +1273,6 @@ nsMenuPopupFrame::SetPopupPosition(nsIFrame* aAnchorFrame, PRBool aIsMove) screenRect.YMost(), anchorRect.y, anchorRect.YMost(), margin.top, margin.bottom, offsetForContextMenu, vFlip, &mVFlip); - // snap the screen position to device pixels, see bug 622507 - screenPoint.x = presContext->RoundAppUnitsToNearestDevPixels(screenPoint.x); - screenPoint.y = presContext->RoundAppUnitsToNearestDevPixels(screenPoint.y); - NS_ASSERTION(screenPoint.x >= screenRect.x && screenPoint.y >= screenRect.y && screenPoint.x + mRect.width <= screenRect.XMost() && screenPoint.y + mRect.height <= screenRect.YMost(),