Bug 1143974. When converting the anchor rect for a xul popup make sure to actually convert for app units differences. r=mats

ConvertAppUnitsRoundOut returns the result, it doesn't modify |this|.
This commit is contained in:
Timothy Nikkel
2015-03-18 03:55:01 -05:00
parent 3af790e946
commit 0d41e4fcbb

View File

@@ -1221,6 +1221,7 @@ nsMenuPopupFrame::SetPopupPosition(nsIFrame* aAnchorFrame, bool aIsMove, bool aS
// Relative to the screen
parentRect.MoveBy(referenceFrame->GetScreenRectInAppUnits().TopLeft());
// In its own app units
parentRect =
parentRect.ConvertAppUnitsRoundOut(rootPresContext->AppUnitsPerDevPixel(),
presContext->AppUnitsPerDevPixel());