135
136
return getStaticValueSlot<JSSVGRectElement, Base>(exec, &JSSVGRectElementTable, this, propertyName, slot);
138
JSValuePtr jsSVGRectElementX(ExecState* exec, const Identifier&, const PropertySlot& slot)
140
SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(asObject(slot.slotBase()))->impl());
139
bool JSSVGRectElement::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
141
return getStaticValueDescriptor<JSSVGRectElement, Base>(exec, &JSSVGRectElementTable, this, propertyName, descriptor);
144
JSValue jsSVGRectElementX(ExecState* exec, const Identifier&, const PropertySlot& slot)
146
JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
148
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
141
149
RefPtr<SVGAnimatedLength> obj = imp->xAnimated();
142
return toJS(exec, obj.get(), imp);
150
return toJS(exec, castedThis->globalObject(), obj.get(), imp);
145
JSValuePtr jsSVGRectElementY(ExecState* exec, const Identifier&, const PropertySlot& slot)
153
JSValue jsSVGRectElementY(ExecState* exec, const Identifier&, const PropertySlot& slot)
147
SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(asObject(slot.slotBase()))->impl());
155
JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
157
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
148
158
RefPtr<SVGAnimatedLength> obj = imp->yAnimated();
149
return toJS(exec, obj.get(), imp);
159
return toJS(exec, castedThis->globalObject(), obj.get(), imp);
152
JSValuePtr jsSVGRectElementWidth(ExecState* exec, const Identifier&, const PropertySlot& slot)
162
JSValue jsSVGRectElementWidth(ExecState* exec, const Identifier&, const PropertySlot& slot)
154
SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(asObject(slot.slotBase()))->impl());
164
JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
166
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
155
167
RefPtr<SVGAnimatedLength> obj = imp->widthAnimated();
156
return toJS(exec, obj.get(), imp);
168
return toJS(exec, castedThis->globalObject(), obj.get(), imp);
159
JSValuePtr jsSVGRectElementHeight(ExecState* exec, const Identifier&, const PropertySlot& slot)
171
JSValue jsSVGRectElementHeight(ExecState* exec, const Identifier&, const PropertySlot& slot)
161
SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(asObject(slot.slotBase()))->impl());
173
JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
175
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
162
176
RefPtr<SVGAnimatedLength> obj = imp->heightAnimated();
163
return toJS(exec, obj.get(), imp);
177
return toJS(exec, castedThis->globalObject(), obj.get(), imp);
166
JSValuePtr jsSVGRectElementRx(ExecState* exec, const Identifier&, const PropertySlot& slot)
180
JSValue jsSVGRectElementRx(ExecState* exec, const Identifier&, const PropertySlot& slot)
168
SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(asObject(slot.slotBase()))->impl());
182
JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
184
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
169
185
RefPtr<SVGAnimatedLength> obj = imp->rxAnimated();
170
return toJS(exec, obj.get(), imp);
186
return toJS(exec, castedThis->globalObject(), obj.get(), imp);
173
JSValuePtr jsSVGRectElementRy(ExecState* exec, const Identifier&, const PropertySlot& slot)
189
JSValue jsSVGRectElementRy(ExecState* exec, const Identifier&, const PropertySlot& slot)
175
SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(asObject(slot.slotBase()))->impl());
191
JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
193
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
176
194
RefPtr<SVGAnimatedLength> obj = imp->ryAnimated();
177
return toJS(exec, obj.get(), imp);
180
JSValuePtr jsSVGRectElementRequiredFeatures(ExecState* exec, const Identifier&, const PropertySlot& slot)
182
SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(asObject(slot.slotBase()))->impl());
183
return toJS(exec, WTF::getPtr(imp->requiredFeatures()), imp);
186
JSValuePtr jsSVGRectElementRequiredExtensions(ExecState* exec, const Identifier&, const PropertySlot& slot)
188
SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(asObject(slot.slotBase()))->impl());
189
return toJS(exec, WTF::getPtr(imp->requiredExtensions()), imp);
192
JSValuePtr jsSVGRectElementSystemLanguage(ExecState* exec, const Identifier&, const PropertySlot& slot)
194
SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(asObject(slot.slotBase()))->impl());
195
return toJS(exec, WTF::getPtr(imp->systemLanguage()), imp);
198
JSValuePtr jsSVGRectElementXmllang(ExecState* exec, const Identifier&, const PropertySlot& slot)
200
SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(asObject(slot.slotBase()))->impl());
195
return toJS(exec, castedThis->globalObject(), obj.get(), imp);
198
JSValue jsSVGRectElementRequiredFeatures(ExecState* exec, const Identifier&, const PropertySlot& slot)
200
JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
202
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
203
return toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->requiredFeatures()), imp);
206
JSValue jsSVGRectElementRequiredExtensions(ExecState* exec, const Identifier&, const PropertySlot& slot)
208
JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
210
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
211
return toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->requiredExtensions()), imp);
214
JSValue jsSVGRectElementSystemLanguage(ExecState* exec, const Identifier&, const PropertySlot& slot)
216
JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
218
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
219
return toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->systemLanguage()), imp);
222
JSValue jsSVGRectElementXmllang(ExecState* exec, const Identifier&, const PropertySlot& slot)
224
JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
226
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
201
227
return jsString(exec, imp->xmllang());
204
JSValuePtr jsSVGRectElementXmlspace(ExecState* exec, const Identifier&, const PropertySlot& slot)
230
JSValue jsSVGRectElementXmlspace(ExecState* exec, const Identifier&, const PropertySlot& slot)
206
SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(asObject(slot.slotBase()))->impl());
232
JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
234
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
207
235
return jsString(exec, imp->xmlspace());
210
JSValuePtr jsSVGRectElementExternalResourcesRequired(ExecState* exec, const Identifier&, const PropertySlot& slot)
238
JSValue jsSVGRectElementExternalResourcesRequired(ExecState* exec, const Identifier&, const PropertySlot& slot)
212
SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(asObject(slot.slotBase()))->impl());
240
JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
242
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
213
243
RefPtr<SVGAnimatedBoolean> obj = imp->externalResourcesRequiredAnimated();
214
return toJS(exec, obj.get(), imp);
244
return toJS(exec, castedThis->globalObject(), obj.get(), imp);
217
JSValuePtr jsSVGRectElementClassName(ExecState* exec, const Identifier&, const PropertySlot& slot)
247
JSValue jsSVGRectElementClassName(ExecState* exec, const Identifier&, const PropertySlot& slot)
219
SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(asObject(slot.slotBase()))->impl());
249
JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
251
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
220
252
RefPtr<SVGAnimatedString> obj = imp->classNameAnimated();
221
return toJS(exec, obj.get(), imp);
224
JSValuePtr jsSVGRectElementStyle(ExecState* exec, const Identifier&, const PropertySlot& slot)
226
SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(asObject(slot.slotBase()))->impl());
227
return toJS(exec, WTF::getPtr(imp->style()));
230
JSValuePtr jsSVGRectElementTransform(ExecState* exec, const Identifier&, const PropertySlot& slot)
232
SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(asObject(slot.slotBase()))->impl());
253
return toJS(exec, castedThis->globalObject(), obj.get(), imp);
256
JSValue jsSVGRectElementStyle(ExecState* exec, const Identifier&, const PropertySlot& slot)
258
JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
260
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
261
return toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->style()));
264
JSValue jsSVGRectElementTransform(ExecState* exec, const Identifier&, const PropertySlot& slot)
266
JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
268
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
233
269
RefPtr<SVGAnimatedTransformList> obj = imp->transformAnimated();
234
return toJS(exec, obj.get(), imp);
237
JSValuePtr jsSVGRectElementNearestViewportElement(ExecState* exec, const Identifier&, const PropertySlot& slot)
239
SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(asObject(slot.slotBase()))->impl());
240
return toJS(exec, WTF::getPtr(imp->nearestViewportElement()));
243
JSValuePtr jsSVGRectElementFarthestViewportElement(ExecState* exec, const Identifier&, const PropertySlot& slot)
245
SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(asObject(slot.slotBase()))->impl());
246
return toJS(exec, WTF::getPtr(imp->farthestViewportElement()));
249
void JSSVGRectElement::put(ExecState* exec, const Identifier& propertyName, JSValuePtr value, PutPropertySlot& slot)
270
return toJS(exec, castedThis->globalObject(), obj.get(), imp);
273
JSValue jsSVGRectElementNearestViewportElement(ExecState* exec, const Identifier&, const PropertySlot& slot)
275
JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
277
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
278
return toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->nearestViewportElement()));
281
JSValue jsSVGRectElementFarthestViewportElement(ExecState* exec, const Identifier&, const PropertySlot& slot)
283
JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
285
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
286
return toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->farthestViewportElement()));
289
void JSSVGRectElement::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)
251
291
lookupPut<JSSVGRectElement, Base>(exec, propertyName, value, &JSSVGRectElementTable, this, slot);
254
void setJSSVGRectElementXmllang(ExecState* exec, JSObject* thisObject, JSValuePtr value)
256
SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(thisObject)->impl());
257
imp->setXmllang(value->toString(exec));
260
void setJSSVGRectElementXmlspace(ExecState* exec, JSObject* thisObject, JSValuePtr value)
262
SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(thisObject)->impl());
263
imp->setXmlspace(value->toString(exec));
266
JSValuePtr jsSVGRectElementPrototypeFunctionHasExtension(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
268
if (!thisValue->isObject(&JSSVGRectElement::s_info))
269
return throwError(exec, TypeError);
270
JSSVGRectElement* castedThisObj = static_cast<JSSVGRectElement*>(asObject(thisValue));
271
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThisObj->impl());
272
const UString& extension = args.at(exec, 0)->toString(exec);
275
JSC::JSValuePtr result = jsBoolean(imp->hasExtension(extension));
279
JSValuePtr jsSVGRectElementPrototypeFunctionGetPresentationAttribute(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
281
if (!thisValue->isObject(&JSSVGRectElement::s_info))
282
return throwError(exec, TypeError);
283
JSSVGRectElement* castedThisObj = static_cast<JSSVGRectElement*>(asObject(thisValue));
284
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThisObj->impl());
285
const UString& name = args.at(exec, 0)->toString(exec);
288
JSC::JSValuePtr result = toJS(exec, WTF::getPtr(imp->getPresentationAttribute(name)));
292
JSValuePtr jsSVGRectElementPrototypeFunctionGetBBox(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
294
if (!thisValue->isObject(&JSSVGRectElement::s_info))
295
return throwError(exec, TypeError);
296
JSSVGRectElement* castedThisObj = static_cast<JSSVGRectElement*>(asObject(thisValue));
297
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThisObj->impl());
300
JSC::JSValuePtr result = toJS(exec, JSSVGStaticPODTypeWrapper<FloatRect>::create(imp->getBBox()).get(), imp);
304
JSValuePtr jsSVGRectElementPrototypeFunctionGetCTM(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
306
if (!thisValue->isObject(&JSSVGRectElement::s_info))
307
return throwError(exec, TypeError);
308
JSSVGRectElement* castedThisObj = static_cast<JSSVGRectElement*>(asObject(thisValue));
309
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThisObj->impl());
312
JSC::JSValuePtr result = toJS(exec, JSSVGStaticPODTypeWrapper<TransformationMatrix>::create(imp->getCTM()).get(), imp);
316
JSValuePtr jsSVGRectElementPrototypeFunctionGetScreenCTM(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
318
if (!thisValue->isObject(&JSSVGRectElement::s_info))
319
return throwError(exec, TypeError);
320
JSSVGRectElement* castedThisObj = static_cast<JSSVGRectElement*>(asObject(thisValue));
321
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThisObj->impl());
324
JSC::JSValuePtr result = toJS(exec, JSSVGStaticPODTypeWrapper<TransformationMatrix>::create(imp->getScreenCTM()).get(), imp);
328
JSValuePtr jsSVGRectElementPrototypeFunctionGetTransformToElement(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
330
if (!thisValue->isObject(&JSSVGRectElement::s_info))
294
void setJSSVGRectElementXmllang(ExecState* exec, JSObject* thisObject, JSValue value)
296
SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(thisObject)->impl());
297
imp->setXmllang(value.toString(exec));
300
void setJSSVGRectElementXmlspace(ExecState* exec, JSObject* thisObject, JSValue value)
302
SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(thisObject)->impl());
303
imp->setXmlspace(value.toString(exec));
306
JSValue JSC_HOST_CALL jsSVGRectElementPrototypeFunctionHasExtension(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
309
if (!thisValue.inherits(&JSSVGRectElement::s_info))
310
return throwError(exec, TypeError);
311
JSSVGRectElement* castedThisObj = static_cast<JSSVGRectElement*>(asObject(thisValue));
312
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThisObj->impl());
313
const UString& extension = args.at(0).toString(exec);
316
JSC::JSValue result = jsBoolean(imp->hasExtension(extension));
320
JSValue JSC_HOST_CALL jsSVGRectElementPrototypeFunctionGetPresentationAttribute(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
323
if (!thisValue.inherits(&JSSVGRectElement::s_info))
324
return throwError(exec, TypeError);
325
JSSVGRectElement* castedThisObj = static_cast<JSSVGRectElement*>(asObject(thisValue));
326
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThisObj->impl());
327
const UString& name = args.at(0).toString(exec);
330
JSC::JSValue result = toJS(exec, castedThisObj->globalObject(), WTF::getPtr(imp->getPresentationAttribute(name)));
334
JSValue JSC_HOST_CALL jsSVGRectElementPrototypeFunctionGetBBox(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
337
if (!thisValue.inherits(&JSSVGRectElement::s_info))
338
return throwError(exec, TypeError);
339
JSSVGRectElement* castedThisObj = static_cast<JSSVGRectElement*>(asObject(thisValue));
340
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThisObj->impl());
343
JSC::JSValue result = toJS(exec, castedThisObj->globalObject(), JSSVGStaticPODTypeWrapper<FloatRect>::create(imp->getBBox()).get(), imp);
347
JSValue JSC_HOST_CALL jsSVGRectElementPrototypeFunctionGetCTM(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
350
if (!thisValue.inherits(&JSSVGRectElement::s_info))
351
return throwError(exec, TypeError);
352
JSSVGRectElement* castedThisObj = static_cast<JSSVGRectElement*>(asObject(thisValue));
353
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThisObj->impl());
356
JSC::JSValue result = toJS(exec, castedThisObj->globalObject(), JSSVGStaticPODTypeWrapper<TransformationMatrix>::create(imp->getCTM()).get(), imp);
360
JSValue JSC_HOST_CALL jsSVGRectElementPrototypeFunctionGetScreenCTM(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
363
if (!thisValue.inherits(&JSSVGRectElement::s_info))
364
return throwError(exec, TypeError);
365
JSSVGRectElement* castedThisObj = static_cast<JSSVGRectElement*>(asObject(thisValue));
366
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThisObj->impl());
369
JSC::JSValue result = toJS(exec, castedThisObj->globalObject(), JSSVGStaticPODTypeWrapper<TransformationMatrix>::create(imp->getScreenCTM()).get(), imp);
373
JSValue JSC_HOST_CALL jsSVGRectElementPrototypeFunctionGetTransformToElement(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
376
if (!thisValue.inherits(&JSSVGRectElement::s_info))
331
377
return throwError(exec, TypeError);
332
378
JSSVGRectElement* castedThisObj = static_cast<JSSVGRectElement*>(asObject(thisValue));
333
379
SVGRectElement* imp = static_cast<SVGRectElement*>(castedThisObj->impl());
334
380
ExceptionCode ec = 0;
335
SVGElement* element = toSVGElement(args.at(exec, 0));
338
JSC::JSValuePtr result = toJS(exec, JSSVGStaticPODTypeWrapper<TransformationMatrix>::create(imp->getTransformToElement(element, ec)).get(), imp);
381
SVGElement* element = toSVGElement(args.at(0));
384
JSC::JSValue result = toJS(exec, castedThisObj->globalObject(), JSSVGStaticPODTypeWrapper<TransformationMatrix>::create(imp->getTransformToElement(element, ec)).get(), imp);
339
385
setDOMException(exec, ec);