summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/print_web_view_helper.cc
diff options
context:
space:
mode:
authorhamaji@chromium.org <hamaji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-28 09:46:00 +0000
committerhamaji@chromium.org <hamaji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-28 09:46:00 +0000
commit4ebf5d12a9da2fe381b5bc6e53eba76a2abed8d4 (patch)
tree8709d2a1c9b6afcff614c4d58b774cb2ba89ff31 /chrome/renderer/print_web_view_helper.cc
parentfae8f2508f0927d4099fa78be85f089bae55575c (diff)
downloadchromium_src-4ebf5d12a9da2fe381b5bc6e53eba76a2abed8d4.zip
chromium_src-4ebf5d12a9da2fe381b5bc6e53eba76a2abed8d4.tar.gz
chromium_src-4ebf5d12a9da2fe381b5bc6e53eba76a2abed8d4.tar.bz2
Create constant variables kPointsPerInch and kPixelsPerInch and conversion functions.
BUG=47277 TEST=units_unittest.cc Review URL: http://codereview.chromium.org/2877001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50968 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/print_web_view_helper.cc')
-rw-r--r--chrome/renderer/print_web_view_helper.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/renderer/print_web_view_helper.cc b/chrome/renderer/print_web_view_helper.cc
index 726ce2d..9133e38 100644
--- a/chrome/renderer/print_web_view_helper.cc
+++ b/chrome/renderer/print_web_view_helper.cc
@@ -37,7 +37,7 @@ PrepareFrameAndViewForPrint::PrepareFrameAndViewForPrint(
#if defined(OS_MACOSX)
// On the Mac, the printable area is in points, don't do any scaling based
// on dpi.
- dpi = 72;
+ dpi = printing::kPointsPerInch;
#endif // defined(OS_MACOSX)
print_canvas_size_.set_width(
printing::ConvertUnit(print_params.printable_size.width(), dpi,