From 89650a7e6aa91a2ce3638e59259eca79782d35bc Mon Sep 17 00:00:00 2001 From: "sharparrow1%yahoo.com" Date: Fri, 3 Aug 2007 01:12:19 +0000 Subject: [PATCH] Bug 390161: Make ScreenPixelToMillimeterX/Y return result in CSS pixels. r=jwatt, sr=roc, a19=dbaron git-svn-id: svn://10.0.0.236/trunk@231389 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/svg/content/src/nsSVGSVGElement.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mozilla/content/svg/content/src/nsSVGSVGElement.cpp b/mozilla/content/svg/content/src/nsSVGSVGElement.cpp index 1445772eadf..11ab5c14540 100644 --- a/mozilla/content/svg/content/src/nsSVGSVGElement.cpp +++ b/mozilla/content/svg/content/src/nsSVGSVGElement.cpp @@ -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; }