if (mPrt->mPrintListener) {    if (mPrt->mPrintFrameType == nsIPrintOptions::kFramesAsIs && mPrt->mPrintObject->mFrameType != eDoc) { mPrt->mNumDocsPrinted++;  if (mPrt->mNumDocsPrinted == 1) { mPrt->mPrintListener->OnProgressPrinting(0, mPrt->mNumPrintableDocs); } mPrt->mPrintListener->OnProgressPrinting(mPrt->mNumDocsPrinted, mPrt->mNumPrintableDocs); }
if (mPrt->mPrintFrameType == nsIPrintSettings::kFramesAsIs && mPrt->mPrintObject->mFrameType != eDoc) { mPrt->mNumDocsPrinted++; PrintData::DoOnProgressChange(mPrt->mPrintProgressListeners, mPrt->mNumDocsPrinted, mPrt->mNumPrintableDocs);
DocumentViewerImpl::DoProgressForAsIsFrames(){  if (mPrt->mPrintListener) {    // mPrintFrameType is set to kFramesAsIs event though the Doc Type maybe eDoc    // this is done to make the printing of embedded IFrames easier    // NOTE: we don't want to advance the progress in that case, it is down elsewhere    if (mPrt->mPrintFrameType == nsIPrintOptions::kFramesAsIs && mPrt->mPrintObject->mFrameType != eDoc) {      mPrt->mNumDocsPrinted++;      // notify the listener of printed docs      if (mPrt->mNumDocsPrinted == 1) {        mPrt->mPrintListener->OnProgressPrinting(0, mPrt->mNumPrintableDocs);       }      mPrt->mPrintListener->OnProgressPrinting(mPrt->mNumDocsPrinted, mPrt->mNumPrintableDocs);     }  }}