public static void setupTextDecoration(Context c, Node node, InlineBox box) { Element el = null; if (node instanceof Element) { el = (Element) node; } else { el = (Element) node.getParentNode(); }
public static void setupTextDecoration(InlineBox box) {
    public static void setupTextDecoration(Context c, Node node, InlineBox box) {        Element el = null;        if (node instanceof Element) {            el = (Element) node;        } else {            el = (Element) node.getParentNode();        }                // set to defaults        box.underline = false;        box.strikethrough = false;        box.overline = false;                // override based on settings        String text_decoration = c.css.getStyle(el).getStringProperty(CSSName.TEXT_DECORATION);        if (text_decoration != null && text_decoration.equals("underline")) {            box.underline = true;        }        if (text_decoration != null && text_decoration.equals("line-through")) {            box.strikethrough = true;        }        if (text_decoration != null && text_decoration.equals("overline")) {            box.overline = true;        }    }