CalculatedStyle cs = new CalculatedStyle(parent, ps);
CalculatedStyle cs = null; if(ps != null) { cs = new CalculatedStyle(parent, ps); } else { cs = parent; }
    public static InlineBox generateFirstLetterInlineBox( Context c, Node node, int start, String text,                                                            InlineBox prev, InlineBox prev_align, int avail ) {        // u.p("gen first letter box");        // u.p("node = " + node);        // u.p("start = " + start);        int end = start + 1;        // u.p("text = " + text);        // u.p("prev = " + prev);        // u.p("prev align = " + prev_align);        // u.p("avail = " + avail);                Font font = FontUtil.getFont(c, node);        int len = FontUtil.len( c, node, text.substring(start,end), font);        InlineBox box = newBox( c, node, start, end, prev, text, prev_align, font );        Element elem = getElement(node);        CascadedStyle ps = c.css.getPseudoElementStyle(elem,"first-letter");        CalculatedStyle parent = c.css.getStyle(elem);        CalculatedStyle cs = new CalculatedStyle(parent, ps);        //u.p("style = " + cs);        styleInlineBox(c, cs, box);        box.break_after = false;        return box;    }