PRBool isVisible; if (NS_SUCCEEDED(IsVisibleForPainting(aPresContext, aRenderingContext, PR_TRUE, &isVisible)) && !isVisible) { return NS_OK; }
nsHTMLFrameInnerFrame::Paint(nsIPresContext*      aPresContext,                             nsIRenderingContext& aRenderingContext,                             const nsRect&        aDirtyRect,                             nsFramePaintLayer    aWhichLayer){  //printf("inner paint %X (%d,%d,%d,%d) \n", this, aDirtyRect.x, aDirtyRect.y, aDirtyRect.width, aDirtyRect.height);  // if there is not web shell paint based on our background color,   // otherwise let the web shell paint the sub document   // isPaginated is a temporary fix for Bug 75737   // and this should all be fixed correctly by Bug 75739  PRBool isPaginated;  aPresContext->IsPaginated(&isPaginated);   if (!mSubShell && !isPaginated) {    const nsStyleColor* color =      (const nsStyleColor*)mStyleContext->GetStyleData(eStyleStruct_Color);    aRenderingContext.SetColor(color->mBackgroundColor);    aRenderingContext.FillRect(mRect);  }  DO_GLOBAL_REFLOW_COUNT_DSP("nsHTMLFrameInnerFrame", &aRenderingContext);  return NS_OK;}