gecko-dev/layout/printing
Daniel Holbert 834d608a51 Bug 1776289 part 2: Merge nsPrintJob::Initialize into the constructor. r=emilio
This patch doesn't change behavior; it's just collapsing logic from
nsPrintJob's Initialize method (which is now de-facto infallible) into the
constructor.

I'm also removing the "Methods needed by the DocViewer" header-comment since
it's clearly innacurate at this point. It's only surrounding this constructor
and GetSeqFrameAndCountSheets, which is silly since nsDocumentViewer uses more
of our API than that.

(I also placed TODO(dholbert) comments for a few things that looked odd, to
follow up on later. In particular, I noticed that nsDocumentViewer holds a
dedicated stack-owned RefPtr reference to nsPrintJob after creating it, which
superficially looks unnecessary. I don't want to risk changing behvior or
introducing a crash by removing that reference in this refactoring patch, so
I'm leaving that as-is and simply flagging it as suspicious.)

Depends on D150194

Differential Revision: https://phabricator.services.mozilla.com/D150195
2022-06-23 22:57:01 +00:00
..
crashtests Bug 1758199: Add null-check for GetPresContext() in nsRefreshDriver::NotifyDOMContentLoaded. r=emilio 2022-03-15 04:33:42 +00:00
ipc Bug 1770372 - Notify with STATE_IS_DOCUMENT from RemotePrintJobParent. r=nika 2022-05-25 20:56:01 +00:00
DrawEventRecorder.cpp
DrawEventRecorder.h
moz.build Bug 1754111 part 2: Fix non-unified build errors in layout/printing, and mark it as safe to build in non-unified mode. r=emilio 2022-02-08 05:17:30 +00:00
nsPagePrintTimer.cpp Bug 1754111 part 1: Move nsPagePrintTimer constructor definition (and its nsPrintObject.h include) to the .cpp file. r=emilio 2022-02-08 05:17:30 +00:00
nsPagePrintTimer.h Bug 1754111 part 1: Move nsPagePrintTimer constructor definition (and its nsPrintObject.h include) to the .cpp file. r=emilio 2022-02-08 05:17:30 +00:00
nsPrintData.cpp Bug 1770539 p6 - Move nsPrintData::mPrintDocList to nsPrintJob. r=emilio 2022-05-22 09:37:57 +00:00
nsPrintData.h Bug 1770539 p9 - Move nsPrintData::mPrintObject to nsPrintJob. r=emilio 2022-05-22 09:37:58 +00:00
nsPrintJob.cpp Bug 1776289 part 2: Merge nsPrintJob::Initialize into the constructor. r=emilio 2022-06-23 22:57:01 +00:00
nsPrintJob.h Bug 1776289 part 2: Merge nsPrintJob::Initialize into the constructor. r=emilio 2022-06-23 22:57:01 +00:00
nsPrintObject.cpp Bug 1776074 part 7: Remove mFrameType member (and PrintObjectType in general) from nsPrintObject.h. r=emilio 2022-06-23 22:57:00 +00:00
nsPrintObject.h Bug 1776074 part 7: Remove mFrameType member (and PrintObjectType in general) from nsPrintObject.h. r=emilio 2022-06-23 22:57:00 +00:00
PrintTranslator.cpp Bug 1720152 - Recurse into replay for dependencies, rather than using a temp surface. r=jrmuizel,bobowen,emilio 2021-08-09 22:07:36 +00:00
PrintTranslator.h Bug 1720152 - Recurse into replay for dependencies, rather than using a temp surface. r=jrmuizel,bobowen,emilio 2021-08-09 22:07:36 +00:00