void setJSSVGAnimatedNumberBaseVal(ExecState* exec, JSObject* thisObject, JSValue value) { SVGAnimatedNumber* imp = static_cast<SVGAnimatedNumber*>(static_cast<JSSVGAnimatedNumber*>(thisObject)->impl()); imp->setBaseVal(value.toFloat(exec)); if (static_cast<JSSVGAnimatedNumber*>(thisObject)->context()) static_cast<JSSVGAnimatedNumber*>(thisObject)->context()->svgAttributeChanged(static_cast<JSSVGAnimatedNumber*>(thisObject)->impl()->associatedAttributeName()); }
void JSSVGAnimatedNumber::putValueProperty(ExecState* exec, int token, JSValue* value) { switch (token) { case BaseValAttrNum: { SVGAnimatedNumber* imp = static_cast<SVGAnimatedNumber*>(impl()); imp->setBaseVal(value->toFloat(exec)); if (context()) context()->svgAttributeChanged(impl()->associatedAttributeName()); break; } } }
JSValue* JSSVGAnimatedNumber::getValueProperty(ExecState* exec, int token) const { switch (token) { case BaseValAttrNum: { SVGAnimatedNumber* imp = static_cast<SVGAnimatedNumber*>(impl()); return jsNumber(exec, imp->baseVal()); } case AnimValAttrNum: { SVGAnimatedNumber* imp = static_cast<SVGAnimatedNumber*>(impl()); return jsNumber(exec, imp->animVal()); } } return 0; }