public ICSSStyleDeclItem getDeclItemNode(String propertyName) { ICSSNode node = getLastChild(); propertyName = propertyName.trim(); while (node != null) { if (node instanceof CSSStyleDeclItemImpl) { ICSSStyleDeclItem item = (ICSSStyleDeclItem) node; if (propertyName.compareToIgnoreCase(item.getPropertyName().trim()) == 0) return item; } node = node.getPreviousSibling(); } return null; }
ICSSNode prev = (child != null) ? child.getPreviousSibling() : node.getLastChild(); int start = (prev != null) ? ((IndexedRegion) prev).getEndOffset() : 0; int end = (child != null) ? ((IndexedRegion) child).getStartOffset() : 0;
ICSSNode prev = (child != null) ? child.getPreviousSibling() : node.getLastChild(); int start = (prev != null) ? ((IndexedRegion) prev).getEndOffset() : 0; int end = (child != null) ? ((IndexedRegion) child).getStartOffset() : 0;
ICSSNode prev = (child != null) ? child.getPreviousSibling() : node.getLastChild(); int start = (prev != null) ? ((IndexedRegion) prev).getEndOffset() : 0; int end = (child != null) ? ((IndexedRegion) child).getStartOffset() : 0;
ICSSNode prev = (child != null) ? child.getPreviousSibling() : node.getLastChild(); int start = (prev != null) ? ((IndexedRegion) prev).getEndOffset() : 0; int end = (child != null) ? ((IndexedRegion) child).getStartOffset() : 0; } else if (child != null && (child.getPreviousSibling() == null || child.getPreviousSibling().getNodeType() == ICSSNode.MEDIALIST_NODE)) { // between
appendSpaceBefore(node, toAppend, source); } else if (child != null && (child.getPreviousSibling() == null || child.getPreviousSibling().getNodeType() == ICSSNode.MEDIALIST_NODE)) { // between
for (child = target.getLastChild(); child != null && !(child instanceof CSSStructuredDocumentRegionContainer); child = child.getPreviousSibling()) {
int curStart = ((IndexedRegion) child.getPreviousSibling()).getEndOffset(); if (curStart < end) { String toAppend = (childSource != null) ? new String(childSource) : "";//$NON-NLS-1$
ICSSNode prev = (child != null) ? child.getPreviousSibling() : node.getLastChild(); if (prev == null && child == null) return;
CSSCleanupStrategy stgy = getCleanupStrategy(node); ICSSNode prev = (child != null) ? child.getPreviousSibling() : node.getLastChild(); int start = (prev != null) ? ((IndexedRegion) prev).getEndOffset() : 0; int end = (child != null) ? ((IndexedRegion) child).getStartOffset() : 0;