diff options
author | gene@chromium.org <gene@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-28 00:56:43 +0000 |
---|---|---|
committer | gene@chromium.org <gene@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-28 00:56:43 +0000 |
commit | 1a30dd3972674b1dd27aa956c7846a1fa5ea5909 (patch) | |
tree | 75c71f532b1aba3e2b7a046ebe631263d15dab33 /net/base/cookie_store_test_helpers.cc | |
parent | c8b657f0e1b1d63cc0c945b32d3e3599b13c72be (diff) | |
download | chromium_src-1a30dd3972674b1dd27aa956c7846a1fa5ea5909.zip chromium_src-1a30dd3972674b1dd27aa956c7846a1fa5ea5909.tar.gz chromium_src-1a30dd3972674b1dd27aa956c7846a1fa5ea5909.tar.bz2 |
Fixed printing gets cut-off issue for CloudPrint and Chrome.
Background: Print output is rendering to metafile that is based on the screen DC. The metafile was scaled to 72/600 for Chrome printing and 96/600 for CloudPrint. When the resolution of the screen is low and print output is large, it is possible for metafile output to go outside of the boundaries and be cut-off the print out.
Fix: This CL calculates scaling dynamically based on the printer and metafile sizes and revert scaling correspondingly in the browser/service for the actual printout.
BUG=chromium-os:16088
TEST=Verify Chrome and CloudPrint printing is working fine. Lower screen resolution (to 800x600 for Chrome, for CloudPrint it is enough to lower to 1280x800). Run Chrome and enable CloudPrint support. Try printing files from the bug 16088.
Review URL: http://codereview.chromium.org/9288081
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119546 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/cookie_store_test_helpers.cc')
0 files changed, 0 insertions, 0 deletions