//-------------------------------------------------------------------------- uchar out_problems(char str[MAXSTR], const char *prefix) { if ( curClass.extflg & XFL_C_ERRLOAD ) { myBorder(); printf_line(inf.indent, COLSTR("%s This class has had loading time problem(s)", SCOLOR_ERROR), prefix); if ( curClass.msgNode ) { MakeNull(); if ( print_loader_messages(str, prefix) == -1) return(1 ); } myBorder(); } return(0); }
void nsBCTableCellFrame::PaintUnderlay(nsPresContext& aPresContext, nsIRenderingContext& aRenderingContext, const nsRect& aDirtyRect, PRUint32& aFlags, const nsStyleBorder& aStyleBorder, const nsStylePadding& aStylePadding, const nsStyleTableBorder& aCellTableStyle) { if (!(aFlags & NS_PAINT_FLAG_TABLE_BG_PAINT) /*direct call; not table-based paint*/ || (aFlags & NS_PAINT_FLAG_TABLE_CELL_BG_PASS) /*table cell background only pass*/) { // make border-width reflect the half of the border-collapse // assigned border that's inside the cell GET_PIXELS_TO_TWIPS(&aPresContext, p2t); nsMargin borderWidth; GetBorderWidth(p2t, borderWidth); nsStyleBorder myBorder(aStyleBorder); NS_FOR_CSS_SIDES(side) { myBorder.SetBorderWidth(side, borderWidth.side(side)); } nsRect rect(0, 0, mRect.width, mRect.height); nsCSSRendering::PaintBackground(&aPresContext, aRenderingContext, this, aDirtyRect, rect, myBorder, aStylePadding, PR_TRUE); // borders are painted by nsTableFrame }