diff options
author | sverrir@chromium.org <sverrir@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-13 14:58:18 +0000 |
---|---|---|
committer | sverrir@chromium.org <sverrir@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-13 14:58:18 +0000 |
commit | be3b19a50ec04d881b3d11ae3c7aac4e7cab4261 (patch) | |
tree | 49e829ce8b8e532a06e7c25d136014acd2f1136e /chrome/browser | |
parent | 76450600208313cadd05b239123336acbf6620e7 (diff) | |
download | chromium_src-be3b19a50ec04d881b3d11ae3c7aac4e7cab4261.zip chromium_src-be3b19a50ec04d881b3d11ae3c7aac4e7cab4261.tar.gz chromium_src-be3b19a50ec04d881b3d11ae3c7aac4e7cab4261.tar.bz2 |
Fix print margins. This fixes multiple issues that caused incorrect offsets on printers that had a non-printable area (like most physical printers do).
Two basic problems fixed. Firstly the margins where incorrectly calculated and secondly there was missing an offset int the rendering code (PHYSICALOFFSETX/Y is 0,0 when printing).
To track this down I added code to print out all relevant margins for visual inspection (turned off by default).
Chrome now prints using correctly calculated margins and is perfectly aligned on the page!
BUG=http://crbug.com/947, http://crbug.com/1566
TEST=Printing on various printers.
Review URL: http://codereview.chromium.org/155382
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20482 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
0 files changed, 0 insertions, 0 deletions