InlineBox box = newBox(c, content, 0, 0, null, bounds, prev_align, font, firstLineStyle);
InlineBox box = newBox(c, content, 0, 0, null, bounds, prev_align, font);
    public static InlineBox generateReplacedInlineBox(Context c, Content content, int avail, InlineBox prev_align, Font font) {        //u.p("generating replaced Inline Box");        // get the layout for the replaced element        Layout layout = c.getLayout(content.getElement());        BlockBox block = (BlockBox) layout.layout(c, content);        //u.p("got a block box from the sub layout: " + block);        Rectangle bounds = new Rectangle(block.x, block.y, block.width, block.height);        //u.p("bounds = " + bounds);        /*         * joshy: change this to just modify the existing block instead of creating         * a  new one         */        //TODO: is firstLineStyle needed? It should probably have been handled above        CascadedStyle firstLineStyle = c.css.getPseudoElementStyle(content.getElement(), "first-line");        // create new inline (null text is safe!)        //TODO: refactor styleBox, it is too overloaded, we know which type we want, right?        InlineBox box = newBox(c, content, 0, 0, null, bounds, prev_align, font, firstLineStyle);        //joshy: activate this: box.block = block        //u.p("created a new inline box");        box.replaced = true;        box.sub_block = block;        block.setParent(box);        // set up the extents        box.width = bounds.width;        box.height = bounds.height;        box.break_after = false;        // if it won't fit on this line, then put it on the next one        if (box.width > avail) {            box.break_before = true;            box.x = 0;        }        // return        //u.p("last replaced = " + box);        return box;    }