return whitespace.createInline(c, node, text, prev, prev_align, avail, max_width, font);
return WhitespaceStripper.createInline(c, textContent, prev, prev_align, avail, max_width, font, firstLineStyle);
    private InlineBox calculateInline(Context c, Node node, int avail, int max_width,                                      LineBox line, InlineBox prev, Element containing_block, InlineBox prev_align) {        // calculate the starting index        int start = 0;        // if this is another box from the same node as the previous one        if (prev != null && prev.getNode() == node) {//prev != null && prev.getContent() == content            start = prev.end_index;        }        // get the text of the node        String text = node.getNodeValue();//content.getText()        // transform the text if required (like converting to caps)        // this must be done before any measuring since it might change the        // size of the text        //u.p("text from the node = \"" + text + "\"");        CalculatedStyle style = c.css.getStyle(node);//content.getStyle()        text = TextUtil.transformText(text, style);        // u.p("calculating inline: text = " + text);        // u.p("avail space = " + avail + " max = " + max_width + "   start index = " + start);        // get the current font. required for sizing        Font font = FontUtil.getFont(c, style);                // handle each case        if (LayoutUtil.isReplaced(c, node)) {//content instanceof ReplacedContent            //u.p("is replaced");            return LineBreaker.generateReplacedInlineBox(c, node, avail, prev, text, prev_align, font);        }                //u.p("calc inline on node : " + node);        if (LayoutUtil.isFloatedBlock(node, c)) {//content instanceof ReplacedContent            //u.p("calcinline: is floated block");            return FloatUtil.generateFloatedBlockInlineBox(c, node, avail, prev, text, prev_align, font);        }        if (LineBreaker.isFirstLetter(c, node, start)) {//TODO:should be handled earlier and differently            //u.p("is first letter");            return LineBreaker.generateFirstLetterInlineBox(c, node, start, text, prev, prev_align, avail);        }        if (c.getRenderingContext().getLayoutFactory().isBreak(node)) {//not needed            // u.p("is break");            return LineBreaker.generateBreakInlineBox(node);        }                        // new whitespace code        WhitespaceStripper whitespace = new WhitespaceStripper();        // u.p("calling whitespace stripper on node: " + node);        // u.p(" prev = " + prev);        return whitespace.createInline(c, node, text, prev, prev_align, avail, max_width, font);    }