зеркало из https://github.com/mozilla/gecko-dev.git
2cedf5494d
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 |
||
---|---|---|
.. | ||
crashtests | ||
ipc | ||
DrawEventRecorder.cpp | ||
DrawEventRecorder.h | ||
PrintTranslator.cpp | ||
PrintTranslator.h | ||
moz.build | ||
nsIPrintProgress.idl | ||
nsIPrintProgressParams.idl | ||
nsPagePrintTimer.cpp | ||
nsPagePrintTimer.h | ||
nsPrintData.cpp | ||
nsPrintData.h | ||
nsPrintJob.cpp | ||
nsPrintJob.h | ||
nsPrintObject.cpp | ||
nsPrintObject.h |