BlockBox box = (BlockBox)blocks.get(i);
box.paintBackground(c);
box.paintBorder(c);
if (c.debugDrawBoxes()) {
box.paintDebugOutline(c);
}
if (collapsedTableBorders != null && box instanceof TableCellBox) {
TableCellBox cell = (TableCellBox)box;
if (cell.hasCollapsedPaintingBorder()) {