forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1833244 p2. Implement sheet orientation switching/rotation for `p…
…age-orientation`. r=AlaskanEmily,dholbert Where supported (print preview and print-to-PDF), this implements changing the orientation and/or rotation of print sheets, as appropriate, in response to CSS `page-orientation`. When supported we: - in the single page-per-sheet case, rotate the sheet in order to implement any `page-orientation` rotation on the sheet. Rotating the sheet is necessary so that when we output PDF files the pages visually have the correct orientation. - in the multiple pages-per-sheet case, we already rotate individual pages in their grid cell. This commit keeps such pages rotated, as appropriate, but augments that behavior by switching the orientation of the sheet (based on the first page on the sheet), if necessary, to make best use of the space on the sheet. (We can't know what orientation any subsequent pages on the sheet will have, so we assume the same orientation as the first one.) Depends on D179423 Differential Revision: https://phabricator.services.mozilla.com/D179448
- Loading branch information
Showing
9 changed files
with
246 additions
and
74 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
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
Oops, something went wrong.