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
ipc
DrawEventRecorder.cpp
DrawEventRecorder.h
PrintTranslator.cpp
PrintTranslator.h
moz.build
nsPagePrintTimer.cpp
nsPagePrintTimer.h
nsPrintData.cpp
nsPrintData.h
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