JSValue jsSVGSymbolElementPreserveAspectRatio(ExecState* exec, const Identifier&, const PropertySlot& slot) { UNUSED_PARAM(exec); SVGSymbolElement* imp = static_cast<SVGSymbolElement*>(static_cast<JSSVGSymbolElement*>(asObject(slot.slotBase()))->impl()); RefPtr<SVGAnimatedPreserveAspectRatio> obj = imp->preserveAspectRatioAnimated(); return toJS(exec, obj.get(), imp); }
static v8::Handle<v8::Value> preserveAspectRatioAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { INC_STATS("DOM.SVGSymbolElement.preserveAspectRatio._get"); SVGSymbolElement* imp = V8SVGSymbolElement::toNative(info.Holder()); SVGElement* context = imp; PassRefPtr<SVGAnimatedPreserveAspectRatio> resultAsPassRefPtr = V8Proxy::withSVGContext(imp->preserveAspectRatioAnimated(), context); return toV8(resultAsPassRefPtr); }