Bug 390161: Make ScreenPixelToMillimeterX/Y return result in CSS pixels. r=jwatt, sr=roc, a19=dbaron

This commit is contained in:
sharparrow1@yahoo.com 2007-08-02 18:12:19 -07:00
parent 8b2b2a1f82
commit aa0edb581a

View File

@ -301,7 +301,8 @@ nsSVGSVGElement::GetScreenPixelToMillimeterX(float *aScreenPixelToMillimeterX)
return NS_OK;
}
*aScreenPixelToMillimeterX = 25.4f / context->AppUnitsToDevPixels(context->AppUnitsPerInch());
*aScreenPixelToMillimeterX = 25.4f /
nsPresContext::AppUnitsToIntCSSPixels(context->AppUnitsPerInch());
return NS_OK;
}