DescriptionUse DPI from Print Preview on Windows, handle non square
- On Windows, use DPI set in print preview to set the printer DPI. Print
preview DPI was previously only used for extension/cloud printers.
- Fix handling of non-square DPI - use x and y DPI to compute the
correct page size to report from the printer instead of assuming
both resolutions are the same when computing page size. Assuming both
are identical results in incorrect page sizes for non square DPI.
- Note that we have to use only 1 DPI for rendering in both
dimensions, this CL just fixes the bad page size behavior.
BUG=648774
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Review-Url: https://codereview.chromium.org/2795453002
Cr-Commit-Position: refs/heads/master@{#461799}
Committed: https://chromium.googlesource.com/chromium/src/+/116c2e17ec19ced7c6700c34661017ee81d0d4ab
Patch Set 1 #
Total comments: 12
Patch Set 2 : Remove unused desired_dpi #
Total comments: 2
Patch Set 3 : Fix compile errors #Patch Set 4 : Actually fix compile errors #Patch Set 5 : Rebase #
Total comments: 6
Patch Set 6 : Address comments #
Messages
Total messages: 37 (27 generated)
|