Bug 177805: Fix the use of units in Gecko. r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@219640 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -506,10 +506,9 @@ CanvasFrame::PaintFocus(nsIRenderingContext& aRenderingContext, nsPoint aPt)
|
||||
return;
|
||||
}
|
||||
|
||||
float p2t = GetPresContext()->PixelsToTwips();
|
||||
// XXX the CSS border for links is specified as 2px, but it
|
||||
// is only drawn as 1px. Match this here.
|
||||
nscoord onePixel = NSIntPixelsToTwips(1, p2t);
|
||||
nscoord onePixel = nsPresContext::CSSPixelsToAppUnits(1);
|
||||
|
||||
nsRect borderInside(focusRect.x + onePixel,
|
||||
focusRect.y + onePixel,
|
||||
|
||||
Reference in New Issue
Block a user