/** * Returns the next stylable parent of the given element. */ public static CSSStylableElement getParentCSSStylableElement(Element elt) { Node n = getCSSParentNode(elt); while (n != null) { if (n instanceof CSSStylableElement) { return (CSSStylableElement) n; } n = getCSSParentNode(n); } return null; }
/** * Returns the next stylable parent of the given element. */ public static CSSStylableElement getParentCSSStylableElement(Element elt) { Node n = getCSSParentNode(elt); while (n != null) { if (n instanceof CSSStylableElement) { return (CSSStylableElement) n; } n = getCSSParentNode(n); } return null; }
/** * Returns the next stylable parent of the given element. */ public static CSSStylableElement getParentCSSStylableElement(Element elt) { Node n = getCSSParentNode(elt); while (n != null) { if (n instanceof CSSStylableElement) { return (CSSStylableElement) n; } n = getCSSParentNode(n); } return null; }
/** * Returns the logical parent element of the given element. * The parent element of a used element is the <use> element * which reference it. */ public static Element getParentElement(Element elt) { Node n = CSSEngine.getCSSParentNode(elt); while (n != null && n.getNodeType() != Node.ELEMENT_NODE) { n = CSSEngine.getCSSParentNode(n); } return (Element) n; }
/** * Returns the logical parent element of the given element. * The parent element of a used element is the <use> element * which reference it. */ public static Element getParentElement(Element elt) { Node n = CSSEngine.getCSSParentNode(elt); while (n != null && n.getNodeType() != Node.ELEMENT_NODE) { n = CSSEngine.getCSSParentNode(n); } return (Element) n; }
/** * Returns the logical parent element of the given element. * The parent element of a used element is the <use> element * which reference it. */ public static Element getParentElement(Element elt) { Node n = CSSEngine.getCSSParentNode(elt); while (n != null && n.getNodeType() != Node.ELEMENT_NODE) { n = CSSEngine.getCSSParentNode(n); } return (Element) n; }
/** * Handles a character data modification in the document. */ protected void handleCharacterDataModified(Node n) { if (getCSSParentNode(n) instanceof CSSStyleSheetNode) { // Invalidate all the CSSStylableElements in the document. styleSheetNodes = null; invalidateProperties(document.getDocumentElement(), null, null, true); } }
/** * Handles a character data modification in the document. */ protected void handleCharacterDataModified(Node n) { if (getCSSParentNode(n) instanceof CSSStyleSheetNode) { // Invalidate all the CSSStylableElements in the document. styleSheetNodes = null; invalidateProperties(document.getDocumentElement(), null, null, true); } }
/** * Handles a character data modification in the document. */ protected void handleCharacterDataModified(Node n) { if (getCSSParentNode(n) instanceof CSSStyleSheetNode) { // Invalidate all the CSSStylableElements in the document. styleSheetNodes = null; invalidateProperties(document.getDocumentElement(), null, null, true); } }