summaryrefslogtreecommitdiffstats
path: root/printing/printed_document_mac.cc
diff options
context:
space:
mode:
authorsanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-29 07:18:29 +0000
committersanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-29 07:18:29 +0000
commit6ab86acd95c830be779fdddbbc1230e8b73c21bc (patch)
tree0513fe4fa922c08856287caa0d1d48a7fb6c751f /printing/printed_document_mac.cc
parenta93885094715c2d23953f9139d61e1071d8006a5 (diff)
downloadchromium_src-6ab86acd95c830be779fdddbbc1230e8b73c21bc.zip
chromium_src-6ab86acd95c830be779fdddbbc1230e8b73c21bc.tar.gz
chromium_src-6ab86acd95c830be779fdddbbc1230e8b73c21bc.tar.bz2
Changed printer page setup units to be in device co-ordinates (this is pixels on Windows and points on the Mac). Also fixed a bug with Mac dpi calculation.
BUG=None. TEST=Test printing on Windows and Mac. Review URL: http://codereview.chromium.org/2351003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48558 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/printed_document_mac.cc')
-rw-r--r--printing/printed_document_mac.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/printing/printed_document_mac.cc b/printing/printed_document_mac.cc
index e9bd044..422dacf 100644
--- a/printing/printed_document_mac.cc
+++ b/printing/printed_document_mac.cc
@@ -25,7 +25,7 @@ void PrintedDocument::RenderPrintedPage(
#endif
const printing::PageSetup& page_setup(
- immutable_.settings_.page_setup_pixels());
+ immutable_.settings_.page_setup_device_units());
CGRect target_rect = page_setup.content_area().ToCGRect();
const printing::NativeMetafile* metafile = page.native_metafile();