JSValue* JSSVGAnimatedAngle::getValueProperty(ExecState* exec, int token) const { switch (token) { case BaseValAttrNum: { SVGAnimatedAngle* imp = static_cast<SVGAnimatedAngle*>(impl()); return toJS(exec, WTF::getPtr(imp->baseVal()), context()); } case AnimValAttrNum: { SVGAnimatedAngle* imp = static_cast<SVGAnimatedAngle*>(impl()); return toJS(exec, WTF::getPtr(imp->animVal()), context()); } } return 0; }
JSValue jsSVGAnimatedAngleAnimVal(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGAnimatedAngle* castedThis = static_cast<JSSVGAnimatedAngle*>(asObject(slotBase)); UNUSED_PARAM(exec); SVGAnimatedAngle* imp = static_cast<SVGAnimatedAngle*>(castedThis->impl()); JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(static_cast<SVGPropertyTearOff<SVGAngle>*>(imp->animVal()))); return result; }