commit | a9257e3ebccac2a331e607c63b2f8eabe5ce9542 | [log] [tgz] |
---|---|---|
author | Florian Thienel <florian@thienel.org> | Sun Oct 31 19:10:42 2010 +0100 |
committer | Florian Thienel <florian@thienel.org> | Sun Oct 31 19:10:42 2010 +0100 |
tree | 7ff2926cd7b740661ab76c18184b4b16b2d7c085 | |
parent | fb572e506fcf5778c82cf5552a9f509be804093b [diff] |
bug 298912 evaluate if the element is displayed
diff --git a/sourceediting/plugins/org.eclipse.wst.xml.vex.core/src/org/eclipse/wst/xml/vex/core/internal/css/Styles.java b/sourceediting/plugins/org.eclipse.wst.xml.vex.core/src/org/eclipse/wst/xml/vex/core/internal/css/Styles.java index 7b9b681..b8727a6 100644 --- a/sourceediting/plugins/org.eclipse.wst.xml.vex.core/src/org/eclipse/wst/xml/vex/core/internal/css/Styles.java +++ b/sourceediting/plugins/org.eclipse.wst.xml.vex.core/src/org/eclipse/wst/xml/vex/core/internal/css/Styles.java
@@ -135,6 +135,13 @@ } /** + * @return true if the <code>display</code> property is not 'none'. + */ + public boolean isDisplayed() { + return !CSS.NONE.equals(getDisplay()); + } + + /** * Returns the value of the <code>font</code> property. */ public FontSpec getFont() {