public CssValue getCascadedValue() { return CssValueFactory.createCssValue(getComputedValue().getCascadedValue()); }
public void uncomputeValueForElement(Element element, int propIndex) { if (!(element instanceof CSSStylableElement)) { return; } Document document = element.getOwnerDocument(); XhtmlCssEngine engine = getCssEngine(document); if (engine == null) { return; } // RaveElement xel = (RaveElement)e; CSSStylableElement elt = (CSSStylableElement)element; StyleMap sm = elt.getComputedStyleMap(null); if (sm != null) { Value v = sm.getValue(propIndex); if (v instanceof ComputedValue) { ComputedValue cv = (ComputedValue)v; sm.putComputed(propIndex, false); sm.putValue(propIndex, cv.getCascadedValue()); } } }
private static void clearComputedValue(StyleMap style, int n) { if (style.isNullCascaded(n)) { style.putValue(n, null); } else { Value v = style.getValue(n); if (v instanceof ComputedValue) { ComputedValue cv = (ComputedValue)v; v = cv.getCascadedValue(); style.putValue(n, v); } } style.putComputed(n, false); }
private static void clearComputedValue(StyleMap style, int n) { if (style.isNullCascaded(n)) { style.putValue(n, null); } else { Value v = style.getValue(n); if (v instanceof ComputedValue) { ComputedValue cv = (ComputedValue)v; v = cv.getCascadedValue(); style.putValue(n, v); } } style.putComputed(n, false); }
private static void clearComputedValue(StyleMap style, int n) { if (style.isNullCascaded(n)) { style.putValue(n, null); } else { Value v = style.getValue(n); if (v instanceof ComputedValue) { ComputedValue cv = (ComputedValue)v; v = cv.getCascadedValue(); style.putValue(n, v); } } style.putComputed(n, false); }
ov = style.getValue(i); if (ov instanceof ComputedValue) { ov = ((ComputedValue)ov).getCascadedValue();
ov = style.getValue(i); if (ov instanceof ComputedValue) { ov = ((ComputedValue)ov).getCascadedValue();
ov = style.getValue(i); if (ov instanceof ComputedValue) { ov = ((ComputedValue)ov).getCascadedValue();