-
- Downloads
Bug 1833244 p2. Create infrastructure to pass page dimensions to PrintTarget::BeginPage. r=dholbert
OS print drivers/devices know nothing about page dimensions unless we tell them. Previously, the physical page dimensions (including orientation) have always been the same, so communicating their dimensions once at the start of a print has been enough. In preparation for supporting different "physical" page dimensions (in the immediate future only different page orientations) when we save to PDF, we need to have the infrastructure to pass dimensions through on a page-by-page basis. This patch adds that. None of the PrintTarget subclasses do anything with this extra information yet, but in a follow-up patch PrintTargetPDF will use this information to create PDFs with mixed page orientations. Differential Revision: https://phabricator.services.mozilla.com/D179423
Showing
- gfx/src/nsDeviceContext.cpp 3 additions, 3 deletionsgfx/src/nsDeviceContext.cpp
- gfx/src/nsDeviceContext.h 12 additions, 2 deletionsgfx/src/nsDeviceContext.h
- gfx/thebes/PrintTarget.h 5 additions, 1 deletiongfx/thebes/PrintTarget.h
- gfx/thebes/PrintTargetCG.h 1 addition, 1 deletiongfx/thebes/PrintTargetCG.h
- gfx/thebes/PrintTargetCG.mm 2 additions, 2 deletionsgfx/thebes/PrintTargetCG.mm
- gfx/thebes/PrintTargetSkPDF.cpp 3 additions, 2 deletionsgfx/thebes/PrintTargetSkPDF.cpp
- gfx/thebes/PrintTargetSkPDF.h 1 addition, 1 deletiongfx/thebes/PrintTargetSkPDF.h
- gfx/thebes/PrintTargetThebes.cpp 1 addition, 1 deletiongfx/thebes/PrintTargetThebes.cpp
- gfx/thebes/PrintTargetThebes.h 1 addition, 1 deletiongfx/thebes/PrintTargetThebes.h
- gfx/thebes/PrintTargetWindows.cpp 2 additions, 2 deletionsgfx/thebes/PrintTargetWindows.cpp
- gfx/thebes/PrintTargetWindows.h 1 addition, 1 deletiongfx/thebes/PrintTargetWindows.h
- layout/generic/PrintedSheetFrame.cpp 10 additions, 0 deletionslayout/generic/PrintedSheetFrame.cpp
- layout/generic/PrintedSheetFrame.h 18 additions, 0 deletionslayout/generic/PrintedSheetFrame.h
- layout/generic/nsPageSequenceFrame.cpp 9 additions, 2 deletionslayout/generic/nsPageSequenceFrame.cpp
- layout/printing/ipc/PRemotePrintJob.ipdl 1 addition, 1 deletionlayout/printing/ipc/PRemotePrintJob.ipdl
- layout/printing/ipc/RemotePrintJobChild.cpp 4 additions, 2 deletionslayout/printing/ipc/RemotePrintJobChild.cpp
- layout/printing/ipc/RemotePrintJobChild.h 4 additions, 1 deletionlayout/printing/ipc/RemotePrintJobChild.h
- layout/printing/ipc/RemotePrintJobParent.cpp 12 additions, 8 deletionslayout/printing/ipc/RemotePrintJobParent.cpp
- layout/printing/ipc/RemotePrintJobParent.h 6 additions, 2 deletionslayout/printing/ipc/RemotePrintJobParent.h
- widget/android/nsDeviceContextAndroid.h 4 additions, 1 deletionwidget/android/nsDeviceContextAndroid.h
Loading
Please register or sign in to comment