DO_GLOBAL_REFLOW_COUNT_DSP("nsHTMLFrameInnerFrame", &aRenderingContext);  return NS_OK;
nsIFrame* firstChild = mFrames.FirstChild(); if (nsnull != firstChild) { firstChild->Paint(aPresContext, aRenderingContext, aDirtyRect, aWhichLayer); } if (IsInline()) { return nsHTMLContainerFrame::Paint(aPresContext, aRenderingContext, aDirtyRect, aWhichLayer); } else { return NS_OK; }
nsHTMLFrameInnerFrame::Paint(nsIPresContext*      aPresContext,                             nsIRenderingContext& aRenderingContext,                             const nsRect&        aDirtyRect,                             nsFramePaintLayer    aWhichLayer,                             PRUint32             aFlags){  //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 (!isPaginated) {    nsCOMPtr<nsIDocShell> docShell;    GetDocShell(getter_AddRefs(docShell));    if (!docShell) {      const nsStyleBackground* color =        (const nsStyleBackground*)mStyleContext->        GetStyleData(eStyleStruct_Background);      aRenderingContext.SetColor(color->mBackgroundColor);      aRenderingContext.FillRect(mRect);    }  }  DO_GLOBAL_REFLOW_COUNT_DSP("nsHTMLFrameInnerFrame", &aRenderingContext);  return NS_OK;}