CalculatedStyle style = c.getCurrentStyle();
CalculatedStyle style = box.getStyle().getCalculatedStyle();
    public static void paint(Context c, Box box) {        CalculatedStyle style = c.getCurrentStyle();        IdentValue listStyle = style.getIdent(CSSName.LIST_STYLE_TYPE);        if (listStyle == IdentValue.NONE) {            return;        }        if (listStyle == IdentValue.LOWER_GREEK) {            listStyle = IdentValue.DECIMAL;        }        if (listStyle == IdentValue.DECIMAL_LEADING_ZERO) {            listStyle = IdentValue.DECIMAL;        }        String image = style.getStringProperty(CSSName.LIST_STYLE_IMAGE);        Image img = null;        if (!image.equals("none")) {            img = c.getCtx().getUac().getImageResource(image).getImage();            if (img != null) {                int baseline = box.height;                c.getGraphics().drawImage(img, box.x - img.getWidth(null) - 2, box.y + baseline / 2 - img.getHeight(null) / 2 + 2, null);                return;            }        }        // prep the color        c.getGraphics().setColor(style.getColor());        // save the old AntiAliasing setting, then force it on        Object aa_key = c.getGraphics().getRenderingHint(RenderingHints.KEY_ANTIALIASING);        c.getGraphics().setRenderingHint(RenderingHints.KEY_ANTIALIASING,                RenderingHints.VALUE_ANTIALIAS_ON);        // calculations for bullets        int rad = 8;// change this to use the glyph height        int h = FontUtil.lineHeight(c);        rad = h / 3;        int x = box.x - rad - rad / 2;        int y = box.y + (h - rad / 2) / 2;        if (listStyle == IdentValue.DISC) {            c.getGraphics().fillOval(x, y, rad, rad);            return;        }        if (listStyle == IdentValue.SQUARE) {            c.getGraphics().fillRect(x, y, rad, rad);            return;        }        if (listStyle == IdentValue.CIRCLE) {            c.getGraphics().drawOval(x, y, rad, rad);            return;        }        // restore the old AntiAliasing setting        c.getGraphics().setRenderingHint(RenderingHints.KEY_ANTIALIASING,                aa_key);        // calculations for text        if (listStyle == IdentValue.DECIMAL) {            drawText(c, box, listStyle);            return;        }        if (listStyle == IdentValue.LOWER_LATIN) {            drawText(c, box, listStyle);            return;        }        if (listStyle == IdentValue.UPPER_LATIN) {            drawText(c, box, listStyle);            return;        }        if (listStyle == IdentValue.LOWER_ROMAN) {            drawText(c, box, listStyle);            return;        }        if (listStyle == IdentValue.UPPER_ROMAN) {            drawText(c, box, listStyle);            return;        }    }