~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to src/3rdparty/webkit/WebCore/generated/JSSVGRectElement.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2009-11-02 18:30:08 UTC
  • mfrom: (1.2.2 upstream)
  • mto: (15.2.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 88.
  • Revision ID: james.westby@ubuntu.com-20091102183008-b6a4gcs128mvfb3m
Tags: upstream-4.6.0~beta1
ImportĀ upstreamĀ versionĀ 4.6.0~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
#include "config.h"
22
22
 
23
 
 
24
23
#if ENABLE(SVG)
25
24
 
26
 
#include "SVGElement.h"
27
25
#include "JSSVGRectElement.h"
28
26
 
29
 
#include <wtf/GetPtr.h>
30
 
 
31
27
#include "CSSMutableStyleDeclaration.h"
32
28
#include "CSSStyleDeclaration.h"
33
29
#include "CSSValue.h"
45
41
#include "SVGElement.h"
46
42
#include "SVGRectElement.h"
47
43
#include "SVGStringList.h"
48
 
 
49
44
#include <runtime/Error.h>
50
45
#include <runtime/JSString.h>
 
46
#include <wtf/GetPtr.h>
51
47
 
52
48
using namespace JSC;
53
49
 
54
50
namespace WebCore {
55
51
 
56
 
ASSERT_CLASS_FITS_IN_CELL(JSSVGRectElement)
 
52
ASSERT_CLASS_FITS_IN_CELL(JSSVGRectElement);
57
53
 
58
54
/* Hash table */
59
55
 
79
75
    { 0, 0, 0, 0 }
80
76
};
81
77
 
82
 
static const HashTable JSSVGRectElementTable =
 
78
static JSC_CONST_HASHTABLE HashTable JSSVGRectElementTable =
83
79
#if ENABLE(PERFECT_HASH_SIZE)
84
80
    { 8191, JSSVGRectElementTableValues, 0 };
85
81
#else
99
95
    { 0, 0, 0, 0 }
100
96
};
101
97
 
102
 
static const HashTable JSSVGRectElementPrototypeTable =
 
98
static JSC_CONST_HASHTABLE HashTable JSSVGRectElementPrototypeTable =
103
99
#if ENABLE(PERFECT_HASH_SIZE)
104
100
    { 2047, JSSVGRectElementPrototypeTableValues, 0 };
105
101
#else
118
114
    return getStaticFunctionSlot<JSObject>(exec, &JSSVGRectElementPrototypeTable, this, propertyName, slot);
119
115
}
120
116
 
 
117
bool JSSVGRectElementPrototype::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
 
118
{
 
119
    return getStaticFunctionDescriptor<JSObject>(exec, &JSSVGRectElementPrototypeTable, this, propertyName, descriptor);
 
120
}
 
121
 
121
122
const ClassInfo JSSVGRectElement::s_info = { "SVGRectElement", &JSSVGElement::s_info, &JSSVGRectElementTable, 0 };
122
123
 
123
 
JSSVGRectElement::JSSVGRectElement(PassRefPtr<Structure> structure, PassRefPtr<SVGRectElement> impl)
124
 
    : JSSVGElement(structure, impl)
 
124
JSSVGRectElement::JSSVGRectElement(NonNullPassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<SVGRectElement> impl)
 
125
    : JSSVGElement(structure, globalObject, impl)
125
126
{
126
127
}
127
128
 
135
136
    return getStaticValueSlot<JSSVGRectElement, Base>(exec, &JSSVGRectElementTable, this, propertyName, slot);
136
137
}
137
138
 
138
 
JSValuePtr jsSVGRectElementX(ExecState* exec, const Identifier&, const PropertySlot& slot)
139
 
{
140
 
    SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(asObject(slot.slotBase()))->impl());
 
139
bool JSSVGRectElement::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
 
140
{
 
141
    return getStaticValueDescriptor<JSSVGRectElement, Base>(exec, &JSSVGRectElementTable, this, propertyName, descriptor);
 
142
}
 
143
 
 
144
JSValue jsSVGRectElementX(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
145
{
 
146
    JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
 
147
    UNUSED_PARAM(exec);
 
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);
143
151
}
144
152
 
145
 
JSValuePtr jsSVGRectElementY(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
153
JSValue jsSVGRectElementY(ExecState* exec, const Identifier&, const PropertySlot& slot)
146
154
{
147
 
    SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(asObject(slot.slotBase()))->impl());
 
155
    JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
 
156
    UNUSED_PARAM(exec);
 
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);
150
160
}
151
161
 
152
 
JSValuePtr jsSVGRectElementWidth(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
162
JSValue jsSVGRectElementWidth(ExecState* exec, const Identifier&, const PropertySlot& slot)
153
163
{
154
 
    SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(asObject(slot.slotBase()))->impl());
 
164
    JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
 
165
    UNUSED_PARAM(exec);
 
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);
157
169
}
158
170
 
159
 
JSValuePtr jsSVGRectElementHeight(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
171
JSValue jsSVGRectElementHeight(ExecState* exec, const Identifier&, const PropertySlot& slot)
160
172
{
161
 
    SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(asObject(slot.slotBase()))->impl());
 
173
    JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
 
174
    UNUSED_PARAM(exec);
 
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);
164
178
}
165
179
 
166
 
JSValuePtr jsSVGRectElementRx(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
180
JSValue jsSVGRectElementRx(ExecState* exec, const Identifier&, const PropertySlot& slot)
167
181
{
168
 
    SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(asObject(slot.slotBase()))->impl());
 
182
    JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
 
183
    UNUSED_PARAM(exec);
 
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);
171
187
}
172
188
 
173
 
JSValuePtr jsSVGRectElementRy(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
189
JSValue jsSVGRectElementRy(ExecState* exec, const Identifier&, const PropertySlot& slot)
174
190
{
175
 
    SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(asObject(slot.slotBase()))->impl());
 
191
    JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
 
192
    UNUSED_PARAM(exec);
 
193
    SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
176
194
    RefPtr<SVGAnimatedLength> obj = imp->ryAnimated();
177
 
    return toJS(exec, obj.get(), imp);
178
 
}
179
 
 
180
 
JSValuePtr jsSVGRectElementRequiredFeatures(ExecState* exec, const Identifier&, const PropertySlot& slot)
181
 
{
182
 
    SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(asObject(slot.slotBase()))->impl());
183
 
    return toJS(exec, WTF::getPtr(imp->requiredFeatures()), imp);
184
 
}
185
 
 
186
 
JSValuePtr jsSVGRectElementRequiredExtensions(ExecState* exec, const Identifier&, const PropertySlot& slot)
187
 
{
188
 
    SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(asObject(slot.slotBase()))->impl());
189
 
    return toJS(exec, WTF::getPtr(imp->requiredExtensions()), imp);
190
 
}
191
 
 
192
 
JSValuePtr jsSVGRectElementSystemLanguage(ExecState* exec, const Identifier&, const PropertySlot& slot)
193
 
{
194
 
    SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(asObject(slot.slotBase()))->impl());
195
 
    return toJS(exec, WTF::getPtr(imp->systemLanguage()), imp);
196
 
}
197
 
 
198
 
JSValuePtr jsSVGRectElementXmllang(ExecState* exec, const Identifier&, const PropertySlot& slot)
199
 
{
200
 
    SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(asObject(slot.slotBase()))->impl());
 
195
    return toJS(exec, castedThis->globalObject(), obj.get(), imp);
 
196
}
 
197
 
 
198
JSValue jsSVGRectElementRequiredFeatures(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
199
{
 
200
    JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
 
201
    UNUSED_PARAM(exec);
 
202
    SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
 
203
    return toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->requiredFeatures()), imp);
 
204
}
 
205
 
 
206
JSValue jsSVGRectElementRequiredExtensions(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
207
{
 
208
    JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
 
209
    UNUSED_PARAM(exec);
 
210
    SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
 
211
    return toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->requiredExtensions()), imp);
 
212
}
 
213
 
 
214
JSValue jsSVGRectElementSystemLanguage(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
215
{
 
216
    JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
 
217
    UNUSED_PARAM(exec);
 
218
    SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
 
219
    return toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->systemLanguage()), imp);
 
220
}
 
221
 
 
222
JSValue jsSVGRectElementXmllang(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
223
{
 
224
    JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
 
225
    UNUSED_PARAM(exec);
 
226
    SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
201
227
    return jsString(exec, imp->xmllang());
202
228
}
203
229
 
204
 
JSValuePtr jsSVGRectElementXmlspace(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
230
JSValue jsSVGRectElementXmlspace(ExecState* exec, const Identifier&, const PropertySlot& slot)
205
231
{
206
 
    SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(asObject(slot.slotBase()))->impl());
 
232
    JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
 
233
    UNUSED_PARAM(exec);
 
234
    SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
207
235
    return jsString(exec, imp->xmlspace());
208
236
}
209
237
 
210
 
JSValuePtr jsSVGRectElementExternalResourcesRequired(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
238
JSValue jsSVGRectElementExternalResourcesRequired(ExecState* exec, const Identifier&, const PropertySlot& slot)
211
239
{
212
 
    SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(asObject(slot.slotBase()))->impl());
 
240
    JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
 
241
    UNUSED_PARAM(exec);
 
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);
215
245
}
216
246
 
217
 
JSValuePtr jsSVGRectElementClassName(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
247
JSValue jsSVGRectElementClassName(ExecState* exec, const Identifier&, const PropertySlot& slot)
218
248
{
219
 
    SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(asObject(slot.slotBase()))->impl());
 
249
    JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
 
250
    UNUSED_PARAM(exec);
 
251
    SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
220
252
    RefPtr<SVGAnimatedString> obj = imp->classNameAnimated();
221
 
    return toJS(exec, obj.get(), imp);
222
 
}
223
 
 
224
 
JSValuePtr jsSVGRectElementStyle(ExecState* exec, const Identifier&, const PropertySlot& slot)
225
 
{
226
 
    SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(asObject(slot.slotBase()))->impl());
227
 
    return toJS(exec, WTF::getPtr(imp->style()));
228
 
}
229
 
 
230
 
JSValuePtr jsSVGRectElementTransform(ExecState* exec, const Identifier&, const PropertySlot& slot)
231
 
{
232
 
    SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(asObject(slot.slotBase()))->impl());
 
253
    return toJS(exec, castedThis->globalObject(), obj.get(), imp);
 
254
}
 
255
 
 
256
JSValue jsSVGRectElementStyle(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
257
{
 
258
    JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
 
259
    UNUSED_PARAM(exec);
 
260
    SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
 
261
    return toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->style()));
 
262
}
 
263
 
 
264
JSValue jsSVGRectElementTransform(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
265
{
 
266
    JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
 
267
    UNUSED_PARAM(exec);
 
268
    SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
233
269
    RefPtr<SVGAnimatedTransformList> obj = imp->transformAnimated();
234
 
    return toJS(exec, obj.get(), imp);
235
 
}
236
 
 
237
 
JSValuePtr jsSVGRectElementNearestViewportElement(ExecState* exec, const Identifier&, const PropertySlot& slot)
238
 
{
239
 
    SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(asObject(slot.slotBase()))->impl());
240
 
    return toJS(exec, WTF::getPtr(imp->nearestViewportElement()));
241
 
}
242
 
 
243
 
JSValuePtr jsSVGRectElementFarthestViewportElement(ExecState* exec, const Identifier&, const PropertySlot& slot)
244
 
{
245
 
    SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(asObject(slot.slotBase()))->impl());
246
 
    return toJS(exec, WTF::getPtr(imp->farthestViewportElement()));
247
 
}
248
 
 
249
 
void JSSVGRectElement::put(ExecState* exec, const Identifier& propertyName, JSValuePtr value, PutPropertySlot& slot)
 
270
    return toJS(exec, castedThis->globalObject(), obj.get(), imp);
 
271
}
 
272
 
 
273
JSValue jsSVGRectElementNearestViewportElement(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
274
{
 
275
    JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
 
276
    UNUSED_PARAM(exec);
 
277
    SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
 
278
    return toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->nearestViewportElement()));
 
279
}
 
280
 
 
281
JSValue jsSVGRectElementFarthestViewportElement(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
282
{
 
283
    JSSVGRectElement* castedThis = static_cast<JSSVGRectElement*>(asObject(slot.slotBase()));
 
284
    UNUSED_PARAM(exec);
 
285
    SVGRectElement* imp = static_cast<SVGRectElement*>(castedThis->impl());
 
286
    return toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->farthestViewportElement()));
 
287
}
 
288
 
 
289
void JSSVGRectElement::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)
250
290
{
251
291
    lookupPut<JSSVGRectElement, Base>(exec, propertyName, value, &JSSVGRectElementTable, this, slot);
252
292
}
253
293
 
254
 
void setJSSVGRectElementXmllang(ExecState* exec, JSObject* thisObject, JSValuePtr value)
255
 
{
256
 
    SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(thisObject)->impl());
257
 
    imp->setXmllang(value->toString(exec));
258
 
}
259
 
 
260
 
void setJSSVGRectElementXmlspace(ExecState* exec, JSObject* thisObject, JSValuePtr value)
261
 
{
262
 
    SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(thisObject)->impl());
263
 
    imp->setXmlspace(value->toString(exec));
264
 
}
265
 
 
266
 
JSValuePtr jsSVGRectElementPrototypeFunctionHasExtension(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
267
 
{
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);
273
 
 
274
 
 
275
 
    JSC::JSValuePtr result = jsBoolean(imp->hasExtension(extension));
276
 
    return result;
277
 
}
278
 
 
279
 
JSValuePtr jsSVGRectElementPrototypeFunctionGetPresentationAttribute(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
280
 
{
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);
286
 
 
287
 
 
288
 
    JSC::JSValuePtr result = toJS(exec, WTF::getPtr(imp->getPresentationAttribute(name)));
289
 
    return result;
290
 
}
291
 
 
292
 
JSValuePtr jsSVGRectElementPrototypeFunctionGetBBox(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
293
 
{
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());
298
 
 
299
 
 
300
 
    JSC::JSValuePtr result = toJS(exec, JSSVGStaticPODTypeWrapper<FloatRect>::create(imp->getBBox()).get(), imp);
301
 
    return result;
302
 
}
303
 
 
304
 
JSValuePtr jsSVGRectElementPrototypeFunctionGetCTM(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
305
 
{
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());
310
 
 
311
 
 
312
 
    JSC::JSValuePtr result = toJS(exec, JSSVGStaticPODTypeWrapper<TransformationMatrix>::create(imp->getCTM()).get(), imp);
313
 
    return result;
314
 
}
315
 
 
316
 
JSValuePtr jsSVGRectElementPrototypeFunctionGetScreenCTM(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
317
 
{
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());
322
 
 
323
 
 
324
 
    JSC::JSValuePtr result = toJS(exec, JSSVGStaticPODTypeWrapper<TransformationMatrix>::create(imp->getScreenCTM()).get(), imp);
325
 
    return result;
326
 
}
327
 
 
328
 
JSValuePtr jsSVGRectElementPrototypeFunctionGetTransformToElement(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
329
 
{
330
 
    if (!thisValue->isObject(&JSSVGRectElement::s_info))
 
294
void setJSSVGRectElementXmllang(ExecState* exec, JSObject* thisObject, JSValue value)
 
295
{
 
296
    SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(thisObject)->impl());
 
297
    imp->setXmllang(value.toString(exec));
 
298
}
 
299
 
 
300
void setJSSVGRectElementXmlspace(ExecState* exec, JSObject* thisObject, JSValue value)
 
301
{
 
302
    SVGRectElement* imp = static_cast<SVGRectElement*>(static_cast<JSSVGRectElement*>(thisObject)->impl());
 
303
    imp->setXmlspace(value.toString(exec));
 
304
}
 
305
 
 
306
JSValue JSC_HOST_CALL jsSVGRectElementPrototypeFunctionHasExtension(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
 
307
{
 
308
    UNUSED_PARAM(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);
 
314
 
 
315
 
 
316
    JSC::JSValue result = jsBoolean(imp->hasExtension(extension));
 
317
    return result;
 
318
}
 
319
 
 
320
JSValue JSC_HOST_CALL jsSVGRectElementPrototypeFunctionGetPresentationAttribute(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
 
321
{
 
322
    UNUSED_PARAM(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);
 
328
 
 
329
 
 
330
    JSC::JSValue result = toJS(exec, castedThisObj->globalObject(), WTF::getPtr(imp->getPresentationAttribute(name)));
 
331
    return result;
 
332
}
 
333
 
 
334
JSValue JSC_HOST_CALL jsSVGRectElementPrototypeFunctionGetBBox(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
 
335
{
 
336
    UNUSED_PARAM(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());
 
341
 
 
342
 
 
343
    JSC::JSValue result = toJS(exec, castedThisObj->globalObject(), JSSVGStaticPODTypeWrapper<FloatRect>::create(imp->getBBox()).get(), imp);
 
344
    return result;
 
345
}
 
346
 
 
347
JSValue JSC_HOST_CALL jsSVGRectElementPrototypeFunctionGetCTM(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
 
348
{
 
349
    UNUSED_PARAM(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());
 
354
 
 
355
 
 
356
    JSC::JSValue result = toJS(exec, castedThisObj->globalObject(), JSSVGStaticPODTypeWrapper<TransformationMatrix>::create(imp->getCTM()).get(), imp);
 
357
    return result;
 
358
}
 
359
 
 
360
JSValue JSC_HOST_CALL jsSVGRectElementPrototypeFunctionGetScreenCTM(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
 
361
{
 
362
    UNUSED_PARAM(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());
 
367
 
 
368
 
 
369
    JSC::JSValue result = toJS(exec, castedThisObj->globalObject(), JSSVGStaticPODTypeWrapper<TransformationMatrix>::create(imp->getScreenCTM()).get(), imp);
 
370
    return result;
 
371
}
 
372
 
 
373
JSValue JSC_HOST_CALL jsSVGRectElementPrototypeFunctionGetTransformToElement(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
 
374
{
 
375
    UNUSED_PARAM(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));
336
 
 
337
 
 
338
 
    JSC::JSValuePtr result = toJS(exec, JSSVGStaticPODTypeWrapper<TransformationMatrix>::create(imp->getTransformToElement(element, ec)).get(), imp);
 
381
    SVGElement* element = toSVGElement(args.at(0));
 
382
 
 
383
 
 
384
    JSC::JSValue result = toJS(exec, castedThisObj->globalObject(), JSSVGStaticPODTypeWrapper<TransformationMatrix>::create(imp->getTransformToElement(element, ec)).get(), imp);
339
385
    setDOMException(exec, ec);
340
386
    return result;
341
387
}