Open Bug 1785279 Opened 2 years ago

Combine mCreatedForPrintPreview, mIsDoingPrinting and mIsCreatingPrintPreview

Categories

(Core :: Printing: Setup, task, P3)

task

Tracking

()

People

(Reporter: jwatt, Unassigned)

Details

(Whiteboard: [print2020])

Prior to bug 1659432 we used to use a single nsPrintJob for the duration of a print session (from print preview open until we'd finished sending the print to a printer). For each nsPrintJob::PrintPreview() call on a given nsPrintJob (to update for changed print settings) we would update (replace) just the nsPrintJob's nsPrintData, using nsPrintJob to hold onto the unchanging data.

Since bug 1659432 we now discard the nsPrintJob itself whenever nsDocumentViewer::Print/nsDocumentViewer::PrintPreview is called. Given that, the following members should be combined into a single flag:

  • mCreatedForPrintPreview
  • mIsDoingPrinting

Possibly also:

  • mIsCreatingPrintPreview
You need to log in before you can comment on or make changes to this bug.