BlockBox block = null; if (box instanceof BlockBox) { block = (BlockBox) box; }
    static void paintInlineContext(Context c, Box box, boolean restyle) {        //dummy style to make sure that text nodes don't get extra padding and such        {            //Uu.p("painting box: " + box);            LinkedList decorations = c.getDecorations();            //doesn't work here because blocks may be inside inlines, losing inline styling:            // c.pushStyle(CascadedStyle.emptyCascadedStyle);            // translate into local coords            // account for the origin of the containing box            c.translate(box.x, box.y);            c.getGraphics().translate(box.x, box.y);            // for each line box            BlockBox block = null;            if (box instanceof BlockBox) {//Why isn't it always a BlockBox? Because of e.g. Floats!                block = (BlockBox) box;            }            for (int i = 0; i < box.getChildCount(); i++) {                // get the line box                paintLine(c, (LineBox) box.getChild(i), restyle, decorations);            }            // translate back to parent coords            c.getGraphics().translate(-box.x, -box.y);            c.translate(-box.x, -box.y);            //pop dummy style, but no, see above            //c.popStyle();        }    }