forked from chromium/chromium
-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scale size and area by max DPI value for non-square DPI PrintSettings
PrintSettings stores paper size and printable area in device units. The device units for most platforms is the DPI multiplied by inches. For printers with non-square DPI, the largest DPI value should be used. When converting job settings to PrintSettings, the paper size and printable area were scaled by their respective dimension's DPI instead of the max DPI value. This meant that X and Y axes were represented differently in paper size and printable area. Print Preview does not support rendering different dpi settings in the X and Y axis, so this was causing incorrect renderings. Fix places where the paper size and printable area should be scaled by the max DPI. (cherry picked from commit feaa7f8) Bug: 1442457 Change-Id: I113cc58611c99795afdf5076552d05406e2912df Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4508373 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Andy Phan <andyphan@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1139921} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4509654 Owners-Override: Prudhvikumar Bommana <pbommana@google.com> Commit-Queue: Prudhvikumar Bommana <pbommana@google.com> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Cr-Commit-Position: refs/branch-heads/5672_63@{#8} Cr-Branched-From: 0e1a447-refs/branch-heads/5672@{#912} Cr-Branched-From: 5f2a724-refs/heads/main@{#1121455}
- Loading branch information
Andy Phan
authored and
Chromium LUCI CQ
committed
May 5, 2023
1 parent
135354b
commit 500b41d
Showing
3 changed files
with
62 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters