JSValue* JSSVGLinearGradientElement::getValueProperty(ExecState* exec, int token) const { switch (token) { case X1AttrNum: { SVGLinearGradientElement* imp = static_cast<SVGLinearGradientElement*>(impl()); RefPtr<SVGAnimatedLength> obj = imp->x1Animated(); return toJS(exec, obj.get(), imp); } case Y1AttrNum: { SVGLinearGradientElement* imp = static_cast<SVGLinearGradientElement*>(impl()); RefPtr<SVGAnimatedLength> obj = imp->y1Animated(); return toJS(exec, obj.get(), imp); } case X2AttrNum: { SVGLinearGradientElement* imp = static_cast<SVGLinearGradientElement*>(impl()); RefPtr<SVGAnimatedLength> obj = imp->x2Animated(); return toJS(exec, obj.get(), imp); } case Y2AttrNum: { SVGLinearGradientElement* imp = static_cast<SVGLinearGradientElement*>(impl()); RefPtr<SVGAnimatedLength> obj = imp->y2Animated(); return toJS(exec, obj.get(), imp); } } return 0; }
static v8::Handle<v8::Value> x2AttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { SVGLinearGradientElement* imp = V8SVGLinearGradientElement::toNative(info.Holder()); return toV8Fast(imp->x2Animated(), info, imp); }