PRBool isVisible; if (NS_SUCCEEDED(IsVisibleForPainting(aPresContext, aRenderingContext, PR_TRUE, &isVisible)) && !isVisible) { return NS_OK; }
nsLabelFrame::Paint(nsIPresContext* aPresContext,                    nsIRenderingContext& aRenderingContext,                    const nsRect& aDirtyRect,                    nsFramePaintLayer aWhichLayer){  return nsHTMLContainerFrame::Paint(aPresContext, aRenderingContext, aDirtyRect, aWhichLayer);}