Index: Source/core/svg/SVGSVGElement.cpp |
diff --git a/Source/core/svg/SVGSVGElement.cpp b/Source/core/svg/SVGSVGElement.cpp |
index 40a3fa90cb68dcc9ecfe990f4640a7e992151250..61922d67de02fe87424610cbc3bb9007b53db744 100644 |
--- a/Source/core/svg/SVGSVGElement.cpp |
+++ b/Source/core/svg/SVGSVGElement.cpp |
@@ -145,14 +145,12 @@ SVGRect SVGSVGElement::viewport() const |
float SVGSVGElement::pixelUnitToMillimeterX() const |
{ |
- // 2.54 / cssPixelsPerInch gives CM. |
- return (2.54f / cssPixelsPerInch) * 10.0f; |
+ return 1 / cssPixelsPerMillimeter; |
} |
float SVGSVGElement::pixelUnitToMillimeterY() const |
{ |
- // 2.54 / cssPixelsPerInch gives CM. |
- return (2.54f / cssPixelsPerInch) * 10.0f; |
+ return 1 / cssPixelsPerMillimeter; |
} |
float SVGSVGElement::screenPixelToMillimeterX() const |