FSDerivedValue cval = dval;    if (dval.isDeclaredInherit()) {   if (_parent == null) { throw new XRRuntimeException("CalculatedStyle: trying to resolve an inherited property, " + "but have no parent CalculatedStyle (root of document?)--" + "property '" + cssName + "' may not be defined in CSS."); } else {  cval = _parent.valueByName(cssName).copyOf(cssName); } } return cval;
return dval;
    private FSDerivedValue deriveValue(CSSName cssName, org.w3c.dom.css.CSSPrimitiveValue value) {        // Start assuming our computed value is the same as the specified value        RGBColor rgb = (value.getPrimitiveType() == CSSPrimitiveValue.CSS_RGBCOLOR ? value.getRGBColorValue() : null);        String s = (value.getPrimitiveType() == CSSPrimitiveValue.CSS_STRING ? value.getStringValue() : null);        FSDerivedValue dval = DerivedValueFactory.newDerivedValue(                this,                cssName,                value.getPrimitiveType(),                value.getCssText(),                s,                rgb);        FSDerivedValue cval = dval;        //whats the point? (tobe) if (!specified.hasAbsoluteUnit()) {        // inherit the value from parent element if value is set to inherit        if (dval.isDeclaredInherit()) {            // if we are root, have no parent, use the initial value as            // defined by the CSS2 spec            if (_parent == null) {                throw new XRRuntimeException("CalculatedStyle: trying to resolve an inherited property, " +                        "but have no parent CalculatedStyle (root of document?)--" +                        "property '" + cssName + "' may not be defined in CSS.");            } else {                // pull from our parent CalculatedStyle                cval = _parent.valueByName(cssName).copyOf(cssName);            }        }        return cval;    }