} String text_decoration = c.css.getStringProperty(el,"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;
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();    }    String text_decoration = c.css.getStringProperty(el,"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;    }}