if (mPrt->mPrintListener) { if (mPrt->mPrintFrameType == nsIPrintOptions::kEachFrameSep) { mPrt->mNumPagesPrinted++;  if (mPrt->mNumPagesPrinted == 1) { mPrt->mPrintListener->OnProgressPrinting(0, mPrt->mNumPrintablePages); } mPrt->mPrintListener->OnProgressPrinting(mPrt->mNumPagesPrinted, mPrt->mNumPrintablePages); }
if (mPrt->mPrintFrameType == nsIPrintSettings::kEachFrameSep) { mPrt->mNumPagesPrinted++;  PrintData::DoOnProgressChange(mPrt->mPrintProgressListeners, mPrt->mNumPagesPrinted+1, mPrt->mNumPrintablePages);
DocumentViewerImpl::DoProgressForSeparateFrames(){  if (mPrt->mPrintListener) {    if (mPrt->mPrintFrameType == nsIPrintOptions::kEachFrameSep) {      mPrt->mNumPagesPrinted++;      // notify the listener of printed docs      if (mPrt->mNumPagesPrinted == 1) {        mPrt->mPrintListener->OnProgressPrinting(0, mPrt->mNumPrintablePages);       }      mPrt->mPrintListener->OnProgressPrinting(mPrt->mNumPagesPrinted, mPrt->mNumPrintablePages);     }  }}