mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 390161: Make ScreenPixelToMillimeterX/Y return result in CSS pixels. r=jwatt, sr=roc, a19=dbaron
This commit is contained in:
parent
8b2b2a1f82
commit
aa0edb581a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user