7839: pass only Painter to CssBox.Paint()