if (oldclip.intersects(box_rect) || (box instanceof AnonymousBlockBox)) {
if(box.getState() == 2) {
    public static void paintChild(Context c, Box box, boolean restyle) {        if (box.isChildrenExceedBounds()) {            //Uu.p("box children exceed: " + box);            BoxRendering.paint(c, box, false, restyle);            return;        }        if (Configuration.isTrue("xr.renderer.viewport-repaint", false)) {            if (c.getGraphics().getClip() != null) {                Shape oldclip = (Shape) c.getGraphics().getClip();                Rectangle2D box_rect = new Rectangle(box.x, box.y, box.width, box.height);                //Uu.p("old clip = " + oldclip);                //Uu.p("box rect = " + box_rect);                //TODO: handle floated content. HACK: descend into anonymous boxes, won't work for deeper nesting                if (oldclip.intersects(box_rect) || (box instanceof AnonymousBlockBox)) {                    BoxRendering.paint(c, box, false, restyle);                }                return;            }        }        BoxRendering.paint(c, box, false, restyle);    }