@Override public void setComputedStyleMap(String pseudoElement, StyleMap sm) { super.setComputedStyleMap(pseudoElement, sm); if (sm == null && tbody instanceof CSSStylableElement) { // XXX #115932 Also clear the tbody element. // The issue is that the tbody might not be a child of the table element(!??) // See above insertBefore hack. ((CSSStylableElement)tbody).setComputedStyleMap(pseudoElement, sm); } }
/** * Removes the style maps from each CSSStylableElement in the document. */ protected void disposeStyleMaps(Node node) { if (node instanceof CSSStylableElement) { ((CSSStylableElement)node).setComputedStyleMap(null, null); } for (Node n = getCSSFirstChild(node); n != null; n = getCSSNextSibling(n)) { if (n.getNodeType() == Node.ELEMENT_NODE) { disposeStyleMaps(n); } } }
/** * Removes the style maps from each CSSStylableElement in the document. */ protected void disposeStyleMaps(Node node) { if (node instanceof CSSStylableElement) { ((CSSStylableElement)node).setComputedStyleMap(null, null); } for (Node n = getCSSFirstChild(node); n != null; n = getCSSNextSibling(n)) { if (n.getNodeType() == Node.ELEMENT_NODE) { disposeStyleMaps(n); } } }
/** * Removes the style maps from each CSSStylableElement in the document. */ protected void disposeStyleMaps(Node node) { if (node instanceof CSSStylableElement) { ((CSSStylableElement)node).setComputedStyleMap(null, null); } for (Node n = getCSSFirstChild(node); n != null; n = getCSSNextSibling(n)) { if (n.getNodeType() == Node.ELEMENT_NODE) { disposeStyleMaps(n); } } }
/** * Recursively imports the cascaded style from a source element * to an element of the current document. */ public void importCascadedStyleMaps(Element src, CSSEngine srceng, Element dest) { if (src instanceof CSSStylableElement) { CSSStylableElement csrc = (CSSStylableElement)src; CSSStylableElement cdest = (CSSStylableElement)dest; StyleMap sm = srceng.getCascadedStyleMap(csrc, null); sm.setFixedCascadedStyle(true); cdest.setComputedStyleMap(null, sm); if (pseudoElementNames != null) { int len = pseudoElementNames.length; for (int i = 0; i < len; i++) { String pe = pseudoElementNames[i]; sm = srceng.getCascadedStyleMap(csrc, pe); cdest.setComputedStyleMap(pe, sm); } } } for (Node dn = getCSSFirstChild(dest), sn = getCSSFirstChild(src); dn != null; dn = getCSSNextSibling(dn), sn = getCSSNextSibling(sn)) { if (sn.getNodeType() == Node.ELEMENT_NODE) { importCascadedStyleMaps((Element)sn, srceng, (Element)dn); } } }
/** * Recursively imports the cascaded style from a source element * to an element of the current document. */ public void importCascadedStyleMaps(Element src, CSSEngine srceng, Element dest) { if (src instanceof CSSStylableElement) { CSSStylableElement csrc = (CSSStylableElement)src; CSSStylableElement cdest = (CSSStylableElement)dest; StyleMap sm = srceng.getCascadedStyleMap(csrc, null); sm.setFixedCascadedStyle(true); cdest.setComputedStyleMap(null, sm); if (pseudoElementNames != null) { int len = pseudoElementNames.length; for (String pe : pseudoElementNames) { sm = srceng.getCascadedStyleMap(csrc, pe); cdest.setComputedStyleMap(pe, sm); } } } for (Node dn = getCSSFirstChild(dest), sn = getCSSFirstChild(src); dn != null; dn = getCSSNextSibling(dn), sn = getCSSNextSibling(sn)) { if (sn.getNodeType() == Node.ELEMENT_NODE) { importCascadedStyleMaps((Element)sn, srceng, (Element)dn); } } }
/** * Recursively imports the cascaded style from a source element * to an element of the current document. */ public void importCascadedStyleMaps(Element src, CSSEngine srceng, Element dest) { if (src instanceof CSSStylableElement) { CSSStylableElement csrc = (CSSStylableElement)src; CSSStylableElement cdest = (CSSStylableElement)dest; StyleMap sm = srceng.getCascadedStyleMap(csrc, null); sm.setFixedCascadedStyle(true); cdest.setComputedStyleMap(null, sm); if (pseudoElementNames != null) { int len = pseudoElementNames.length; for (String pe : pseudoElementNames) { sm = srceng.getCascadedStyleMap(csrc, pe); cdest.setComputedStyleMap(pe, sm); } } } for (Node dn = getCSSFirstChild(dest), sn = getCSSFirstChild(src); dn != null; dn = getCSSNextSibling(dn), sn = getCSSNextSibling(sn)) { if (sn.getNodeType() == Node.ELEMENT_NODE) { importCascadedStyleMaps((Element)sn, srceng, (Element)dn); } } }
elt.setComputedStyleMap(null, newStyle); for (int i=0; i<diffs.length; i++) { if (diffs[i]) {
elt.setComputedStyleMap(null, newStyle); for (int i=0; i<diffs.length; i++) { if (diffs[i]) {
elt.setComputedStyleMap(null, newStyle); for (int i=0; i<diffs.length; i++) { if (diffs[i]) {
if (sm == null) { sm = getCascadedStyleMap(elt, pseudo); elt.setComputedStyleMap(pseudo, sm);
if (sm == null) { sm = getCascadedStyleMap(elt, pseudo); elt.setComputedStyleMap(pseudo, sm);
if (sm == null) { sm = getCascadedStyleMap(elt, pseudo); elt.setComputedStyleMap(pseudo, sm);