private static int handleInlineElementStart(Context c, CascadedStyle cascaded, LineBox line, InlineBox ib, int padX, LinkedList decorations) { CalculatedStyle style = c.getCurrentStyle();
private static int handleInlineElementStart(Context c, LineBox line, InlineBox ib, int padX, LinkedList decorations) {  /* CalculatedStyle style = ib.getStyle().getCalculatedStyle();
    private static int handleInlineElementStart(Context c, CascadedStyle cascaded, LineBox line, InlineBox ib, int padX, LinkedList decorations) {        CalculatedStyle style = c.getCurrentStyle();        int parent_width = line.getParent().getWidth();        //Border border = style.getBorderWidth(c.getCtx());        //note: percentages here refer to width of containing block        Border margin = style.getMarginWidth(parent_width, parent_width, c.getCtx());        //Border padding = style.getPaddingWidth(parent_width, parent_width, c.getCtx());        paintMargin(c, line, ib, padX, margin.left);        c.pushStyle(cascaded);        //Now we know that an inline element started here, handle borders and such        Relative.translateRelative(c, true);        style = c.getCurrentStyle();        Border border = style.getBorderWidth(c.getCtx());        //note: percentages here refer to width of containing block        margin = style.getMarginWidth(parent_width, parent_width, c.getCtx());        Border padding = style.getPaddingWidth(parent_width, parent_width, c.getCtx());        //left padding for this inline element        //paintLeftPadding takes the margin into account        paintLeftPadding(c, line, ib, padX, margin, border, padding);        padX += margin.left + border.left + padding.left;        //text decoration?        IdentValue decoration = c.getCurrentStyle().getIdent(CSSName.TEXT_DECORATION);        if (decoration != IdentValue.NONE) {            decorations.addLast(new TextDecoration(decoration, ib.x + margin.left + border.left + padding.left, c.getCurrentStyle().getColor(), FontUtil.getLineMetrics(c, null)));        }        return padX;    }