Commit 836361a1 authored by Jonathan Watt's avatar Jonathan Watt
Browse files

Bug 1768741 - Remove nsPrintJob::HasEverPrinted. r=emilio

parent d9951694
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -26,7 +26,6 @@ extern mozilla::LazyLogModule gPrintingLog;
nsPrintData::nsPrintData(ePrintDataType aType)
    : mType(aType),
      mPrintDocList(0),
      mIsParentAFrameSet(false),
      mOnStartSent(false),
      mIsAborted(false),
      mPreparingForPrint(false),
+0 −1
Original line number Diff line number Diff line
@@ -60,7 +60,6 @@ class nsPrintData {
  // mKids (and their mKids, etc.)
  nsTArray<nsPrintObject*> mPrintDocList;

  bool mIsParentAFrameSet;
  bool mOnStartSent;
  bool mIsAborted;          // tells us the document is being aborted
  bool mPreparingForPrint;  // see comments above
+0 −3
Original line number Diff line number Diff line
@@ -2060,9 +2060,6 @@ void nsPrintJob::PageDone(nsresult aResult) {
//---------------------------------------------------------------------
void nsPrintJob::SetIsPrinting(bool aIsPrinting) {
  mIsDoingPrinting = aIsPrinting;
  if (aIsPrinting) {
    mHasEverPrinted = true;
  }
  if (mPrt && aIsPrinting) {
    mPrt->mPreparingForPrint = true;
  }
+0 −2
Original line number Diff line number Diff line
@@ -116,7 +116,6 @@ class nsPrintJob final : public nsIWebProgressListener,

  bool IsDoingPrint() const { return mIsDoingPrinting; }
  bool CreatedForPrintPreview() const { return mCreatedForPrintPreview; }
  bool HasEverPrinted() const { return mHasEverPrinted; }
  /// If the returned value is not greater than zero, an error occurred.
  int32_t GetRawNumPages() const;
  // Returns whether the preview is empty due to page range exclusion.
@@ -283,7 +282,6 @@ class nsPrintJob final : public nsIWebProgressListener,
  bool mCreatedForPrintPreview = false;
  bool mIsCreatingPrintPreview = false;
  bool mIsDoingPrinting = false;
  bool mHasEverPrinted = false;
  bool mDidLoadDataForPrinting = false;
  bool mDoingInitialReflow = false;
  bool mIsDestroying = false;