Index: Source/core/css/CSSHelper.h |
diff --git a/Source/core/css/CSSHelper.h b/Source/core/css/CSSHelper.h |
index ac2c792933a07b521cc320a87bbcc40902385fac..ab79021965746fada96d4c09c2cbbec4e61b2bab 100644 |
--- a/Source/core/css/CSSHelper.h |
+++ b/Source/core/css/CSSHelper.h |
@@ -29,7 +29,11 @@ namespace WebCore { |
// We always assume 96 CSS pixels in a CSS inch. This is the cold hard truth of the Web. |
// At high DPI, we may scale a CSS pixel, but the ratio of the CSS pixel to the so-called |
// "absolute" CSS length units like inch and pt is always fixed and never changes. |
-const float cssPixelsPerInch = 96; |
+const double cssPixelsPerInch = 96; |
+const double cssPixelsPerCentimeter = cssPixelsPerInch / 2.54; |
Julien - ping for review
2013/11/26 23:57:41
Nit: I would put a comment with the conversion inc
|
+const double cssPixelsPerMillimeter = cssPixelsPerCentimeter / 10; |
+const double cssPixelsPerPoint = cssPixelsPerInch / 72; |
+const double cssPixelsPerPica = cssPixelsPerInch / 6; |
} // namespace WebCore |