gecko-dev/layout/printing
Daniel Holbert 2cedf5494d Bug 1669905 part 2: Add nsIPrintSettings APIs to handle the possibility that pages and sheets may have orthogonal orientation, in pages-per-sheet printouts. r=jfkthame
This patch does three things, all centered around these new APIs:

 (1) Add the APIs themselves -- some nsIPrintSettings methods to reason about
the sheet-orientation being potentially flipped to accomodate 2 and 6
pages-per-sheet.

 (2) Use these new APIs, where appropriate, in places where we previously used
the page-orientation to set up the platform-native print-settings objects and
print-target. Now, we'll use the *sheet* orientation instead of the page
orientation, to be sure we produce the appropriately-oriented platform-native
surfaces.  Also, for symmetry, this patch adds similar logic to the reverse
codepaths, where we update an existing nsIPrintSettings object based on a
platform-native print-settings object.

 (3) Update nsPrintJob's code that informs nsPresContext about the page-size.
This patch makes sure that this code uses the *page* size, rather than the
*sheet* size, in cases where they differ.  (The code that consumes this
nsPresContext::GetPageSize API, e.g. our CSS media-query code, really does want
the page size, not the sheet size.)

Differential Revision: https://phabricator.services.mozilla.com/D100372
2021-01-05 02:24:00 +00:00
..
crashtests Bug 1671503 - Handle documents from iframes that haven't changed remoteness yet correctly. r=nordzilla 2020-10-16 20:46:00 +00:00
ipc Bug 1676365 - Move SpinEventLoopUntil to separate header. r=#xpcom-reviewers 2020-11-23 16:10:41 +00:00
DrawEventRecorder.cpp Bug 1662336 - Implement dependent surface support in the print recording code. r=bobowen 2020-10-08 19:19:39 +00:00
DrawEventRecorder.h Bug 1662336 - Implement dependent surface support in the print recording code. r=bobowen 2020-10-08 19:19:39 +00:00
moz.build Bug 1654103: Standardize on Black for Python code in mozilla-central. 2020-10-26 18:34:53 +00:00
nsIPrintProgress.idl
nsIPrintProgressParams.idl
nsPagePrintTimer.cpp Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
nsPagePrintTimer.h Bug 1669774 part 2: Rename some APIs and variables for accuracy (s/page/sheet/) in nsPrintJob, nsPagePrintTimer, and nsDocumentViewer. r=TYLin 2020-10-07 21:00:26 +00:00
nsPrintData.cpp Bug 1661868 part 2: Unify page-range handling logic, to assume all PrintedSheetFrames should be printed (and let them manage page-range-based skipping during layout). r=TYLin 2020-10-07 20:51:56 +00:00
nsPrintData.h Bug 1661868 part 2: Unify page-range handling logic, to assume all PrintedSheetFrames should be printed (and let them manage page-range-based skipping during layout). r=TYLin 2020-10-07 20:51:56 +00:00
nsPrintJob.cpp Bug 1669905 part 2: Add nsIPrintSettings APIs to handle the possibility that pages and sheets may have orthogonal orientation, in pages-per-sheet printouts. r=jfkthame 2021-01-05 02:24:00 +00:00
nsPrintJob.h Bug 1679706 - Communicate to the front-end whether there are no visible pages at all. r=jfkthame 2020-12-02 21:48:03 +00:00
nsPrintObject.cpp Bug 1636728 - Centralize printing entry points in nsGlobalWindowOuter, and move cloning out of nsPrintJob. r=jwatt,geckoview-reviewers,smaug,agi 2020-08-25 17:45:12 +00:00
nsPrintObject.h Bug 1658894 - Move selection range caching to Document::CreateStaticClone(). r=jwatt 2020-08-13 11:11:35 +00:00
PrintTranslator.cpp Bug 1662336 - Implement dependent surface support in the print recording code. r=bobowen 2020-10-08 19:19:39 +00:00
PrintTranslator.h Bug 1662336 - Implement dependent surface support in the print recording code. r=bobowen 2020-10-08 19:19:39 +00:00