133
140
return jsUndefined();
136
JSValuePtr jsSVGLengthListPrototypeFunctionInitialize(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
138
if (!thisValue->isObject(&JSSVGLengthList::s_info))
139
return throwError(exec, TypeError);
140
JSSVGLengthList* castedThisObj = static_cast<JSSVGLengthList*>(asObject(thisValue));
141
SVGLengthList* imp = static_cast<SVGLengthList*>(castedThisObj->impl());
142
ExceptionCode ec = 0;
143
SVGLength item = toSVGLength(args.at(exec, 0));
146
JSC::JSValuePtr result = toJS(exec, JSSVGStaticPODTypeWrapper<SVGLength>::create(imp->initialize(item, ec)).get(), castedThisObj->context());
147
setDOMException(exec, ec);
151
JSValuePtr jsSVGLengthListPrototypeFunctionGetItem(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
153
if (!thisValue->isObject(&JSSVGLengthList::s_info))
154
return throwError(exec, TypeError);
155
JSSVGLengthList* castedThisObj = static_cast<JSSVGLengthList*>(asObject(thisValue));
156
SVGLengthList* imp = static_cast<SVGLengthList*>(castedThisObj->impl());
157
ExceptionCode ec = 0;
158
unsigned index = args.at(exec, 0)->toInt32(exec);
161
JSC::JSValuePtr result = toJS(exec, JSSVGStaticPODTypeWrapper<SVGLength>::create(imp->getItem(index, ec)).get(), castedThisObj->context());
162
setDOMException(exec, ec);
166
JSValuePtr jsSVGLengthListPrototypeFunctionInsertItemBefore(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
168
if (!thisValue->isObject(&JSSVGLengthList::s_info))
169
return throwError(exec, TypeError);
170
JSSVGLengthList* castedThisObj = static_cast<JSSVGLengthList*>(asObject(thisValue));
171
SVGLengthList* imp = static_cast<SVGLengthList*>(castedThisObj->impl());
172
ExceptionCode ec = 0;
173
SVGLength item = toSVGLength(args.at(exec, 0));
174
unsigned index = args.at(exec, 1)->toInt32(exec);
177
JSC::JSValuePtr result = toJS(exec, JSSVGStaticPODTypeWrapper<SVGLength>::create(imp->insertItemBefore(item, index, ec)).get(), castedThisObj->context());
178
setDOMException(exec, ec);
182
JSValuePtr jsSVGLengthListPrototypeFunctionReplaceItem(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
184
if (!thisValue->isObject(&JSSVGLengthList::s_info))
185
return throwError(exec, TypeError);
186
JSSVGLengthList* castedThisObj = static_cast<JSSVGLengthList*>(asObject(thisValue));
187
SVGLengthList* imp = static_cast<SVGLengthList*>(castedThisObj->impl());
188
ExceptionCode ec = 0;
189
SVGLength item = toSVGLength(args.at(exec, 0));
190
unsigned index = args.at(exec, 1)->toInt32(exec);
193
JSC::JSValuePtr result = toJS(exec, JSSVGStaticPODTypeWrapper<SVGLength>::create(imp->replaceItem(item, index, ec)).get(), castedThisObj->context());
194
setDOMException(exec, ec);
198
JSValuePtr jsSVGLengthListPrototypeFunctionRemoveItem(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
200
if (!thisValue->isObject(&JSSVGLengthList::s_info))
201
return throwError(exec, TypeError);
202
JSSVGLengthList* castedThisObj = static_cast<JSSVGLengthList*>(asObject(thisValue));
203
SVGLengthList* imp = static_cast<SVGLengthList*>(castedThisObj->impl());
204
ExceptionCode ec = 0;
205
unsigned index = args.at(exec, 0)->toInt32(exec);
208
JSC::JSValuePtr result = toJS(exec, JSSVGStaticPODTypeWrapper<SVGLength>::create(imp->removeItem(index, ec)).get(), castedThisObj->context());
209
setDOMException(exec, ec);
213
JSValuePtr jsSVGLengthListPrototypeFunctionAppendItem(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
215
if (!thisValue->isObject(&JSSVGLengthList::s_info))
216
return throwError(exec, TypeError);
217
JSSVGLengthList* castedThisObj = static_cast<JSSVGLengthList*>(asObject(thisValue));
218
SVGLengthList* imp = static_cast<SVGLengthList*>(castedThisObj->impl());
219
ExceptionCode ec = 0;
220
SVGLength item = toSVGLength(args.at(exec, 0));
223
JSC::JSValuePtr result = toJS(exec, JSSVGStaticPODTypeWrapper<SVGLength>::create(imp->appendItem(item, ec)).get(), castedThisObj->context());
224
setDOMException(exec, ec);
228
JSC::JSValuePtr toJS(JSC::ExecState* exec, SVGLengthList* object, SVGElement* context)
230
return getDOMObjectWrapper<JSSVGLengthList>(exec, object, context);
232
SVGLengthList* toSVGLengthList(JSC::JSValuePtr value)
234
return value->isObject(&JSSVGLengthList::s_info) ? static_cast<JSSVGLengthList*>(asObject(value))->impl() : 0;
143
JSValue JSC_HOST_CALL jsSVGLengthListPrototypeFunctionInitialize(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
146
if (!thisValue.inherits(&JSSVGLengthList::s_info))
147
return throwError(exec, TypeError);
148
JSSVGLengthList* castedThisObj = static_cast<JSSVGLengthList*>(asObject(thisValue));
149
SVGLengthList* imp = static_cast<SVGLengthList*>(castedThisObj->impl());
150
ExceptionCode ec = 0;
151
SVGLength item = toSVGLength(args.at(0));
154
JSC::JSValue result = toJS(exec, deprecatedGlobalObjectForPrototype(exec), JSSVGStaticPODTypeWrapper<SVGLength>::create(imp->initialize(item, ec)).get(), castedThisObj->context());
155
setDOMException(exec, ec);
159
JSValue JSC_HOST_CALL jsSVGLengthListPrototypeFunctionGetItem(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
162
if (!thisValue.inherits(&JSSVGLengthList::s_info))
163
return throwError(exec, TypeError);
164
JSSVGLengthList* castedThisObj = static_cast<JSSVGLengthList*>(asObject(thisValue));
165
SVGLengthList* imp = static_cast<SVGLengthList*>(castedThisObj->impl());
166
ExceptionCode ec = 0;
167
unsigned index = args.at(0).toInt32(exec);
170
JSC::JSValue result = toJS(exec, deprecatedGlobalObjectForPrototype(exec), JSSVGStaticPODTypeWrapper<SVGLength>::create(imp->getItem(index, ec)).get(), castedThisObj->context());
171
setDOMException(exec, ec);
175
JSValue JSC_HOST_CALL jsSVGLengthListPrototypeFunctionInsertItemBefore(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
178
if (!thisValue.inherits(&JSSVGLengthList::s_info))
179
return throwError(exec, TypeError);
180
JSSVGLengthList* castedThisObj = static_cast<JSSVGLengthList*>(asObject(thisValue));
181
SVGLengthList* imp = static_cast<SVGLengthList*>(castedThisObj->impl());
182
ExceptionCode ec = 0;
183
SVGLength item = toSVGLength(args.at(0));
184
unsigned index = args.at(1).toInt32(exec);
187
JSC::JSValue result = toJS(exec, deprecatedGlobalObjectForPrototype(exec), JSSVGStaticPODTypeWrapper<SVGLength>::create(imp->insertItemBefore(item, index, ec)).get(), castedThisObj->context());
188
setDOMException(exec, ec);
192
JSValue JSC_HOST_CALL jsSVGLengthListPrototypeFunctionReplaceItem(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
195
if (!thisValue.inherits(&JSSVGLengthList::s_info))
196
return throwError(exec, TypeError);
197
JSSVGLengthList* castedThisObj = static_cast<JSSVGLengthList*>(asObject(thisValue));
198
SVGLengthList* imp = static_cast<SVGLengthList*>(castedThisObj->impl());
199
ExceptionCode ec = 0;
200
SVGLength item = toSVGLength(args.at(0));
201
unsigned index = args.at(1).toInt32(exec);
204
JSC::JSValue result = toJS(exec, deprecatedGlobalObjectForPrototype(exec), JSSVGStaticPODTypeWrapper<SVGLength>::create(imp->replaceItem(item, index, ec)).get(), castedThisObj->context());
205
setDOMException(exec, ec);
209
JSValue JSC_HOST_CALL jsSVGLengthListPrototypeFunctionRemoveItem(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
212
if (!thisValue.inherits(&JSSVGLengthList::s_info))
213
return throwError(exec, TypeError);
214
JSSVGLengthList* castedThisObj = static_cast<JSSVGLengthList*>(asObject(thisValue));
215
SVGLengthList* imp = static_cast<SVGLengthList*>(castedThisObj->impl());
216
ExceptionCode ec = 0;
217
unsigned index = args.at(0).toInt32(exec);
220
JSC::JSValue result = toJS(exec, deprecatedGlobalObjectForPrototype(exec), JSSVGStaticPODTypeWrapper<SVGLength>::create(imp->removeItem(index, ec)).get(), castedThisObj->context());
221
setDOMException(exec, ec);
225
JSValue JSC_HOST_CALL jsSVGLengthListPrototypeFunctionAppendItem(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
228
if (!thisValue.inherits(&JSSVGLengthList::s_info))
229
return throwError(exec, TypeError);
230
JSSVGLengthList* castedThisObj = static_cast<JSSVGLengthList*>(asObject(thisValue));
231
SVGLengthList* imp = static_cast<SVGLengthList*>(castedThisObj->impl());
232
ExceptionCode ec = 0;
233
SVGLength item = toSVGLength(args.at(0));
236
JSC::JSValue result = toJS(exec, deprecatedGlobalObjectForPrototype(exec), JSSVGStaticPODTypeWrapper<SVGLength>::create(imp->appendItem(item, ec)).get(), castedThisObj->context());
237
setDOMException(exec, ec);
241
JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, SVGLengthList* object, SVGElement* context)
243
return getDOMObjectWrapper<JSSVGLengthList>(exec, globalObject, object, context);
245
SVGLengthList* toSVGLengthList(JSC::JSValue value)
247
return value.inherits(&JSSVGLengthList::s_info) ? static_cast<JSSVGLengthList*>(asObject(value))->impl() : 0;