nsHTMLFrameOuterFrame::Paint(nsIPresContext* aPresContext,
nsHTMLFrameInnerFrame::Paint(nsIPresContext*      aPresContext,
nsHTMLFrameOuterFrame::Paint(nsIPresContext* aPresContext,                             nsIRenderingContext& aRenderingContext,                             const nsRect& aDirtyRect,                             nsFramePaintLayer aWhichLayer){  PRBool isVisible;  if (NS_SUCCEEDED(IsVisibleForPainting(aPresContext, aRenderingContext, PR_TRUE, &isVisible)) && !isVisible) {    return NS_OK;  }  //printf("outer paint %X (%d,%d,%d,%d) \n", this, aDirtyRect.x, aDirtyRect.y, aDirtyRect.width, aDirtyRect.height);  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;  }}