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

« back to all changes in this revision

Viewing changes to src/3rdparty/webkit/WebCore/generated/JSSVGForeignObjectElement.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) && ENABLE(SVG_FOREIGN_OBJECT)
25
24
 
26
 
#include "SVGElement.h"
27
25
#include "JSSVGForeignObjectElement.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 "SVGForeignObjectElement.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(JSSVGForeignObjectElement)
 
52
ASSERT_CLASS_FITS_IN_CELL(JSSVGForeignObjectElement);
57
53
 
58
54
/* Hash table */
59
55
 
77
73
    { 0, 0, 0, 0 }
78
74
};
79
75
 
80
 
static const HashTable JSSVGForeignObjectElementTable =
 
76
static JSC_CONST_HASHTABLE HashTable JSSVGForeignObjectElementTable =
81
77
#if ENABLE(PERFECT_HASH_SIZE)
82
78
    { 1023, JSSVGForeignObjectElementTableValues, 0 };
83
79
#else
97
93
    { 0, 0, 0, 0 }
98
94
};
99
95
 
100
 
static const HashTable JSSVGForeignObjectElementPrototypeTable =
 
96
static JSC_CONST_HASHTABLE HashTable JSSVGForeignObjectElementPrototypeTable =
101
97
#if ENABLE(PERFECT_HASH_SIZE)
102
98
    { 2047, JSSVGForeignObjectElementPrototypeTableValues, 0 };
103
99
#else
116
112
    return getStaticFunctionSlot<JSObject>(exec, &JSSVGForeignObjectElementPrototypeTable, this, propertyName, slot);
117
113
}
118
114
 
 
115
bool JSSVGForeignObjectElementPrototype::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
 
116
{
 
117
    return getStaticFunctionDescriptor<JSObject>(exec, &JSSVGForeignObjectElementPrototypeTable, this, propertyName, descriptor);
 
118
}
 
119
 
119
120
const ClassInfo JSSVGForeignObjectElement::s_info = { "SVGForeignObjectElement", &JSSVGElement::s_info, &JSSVGForeignObjectElementTable, 0 };
120
121
 
121
 
JSSVGForeignObjectElement::JSSVGForeignObjectElement(PassRefPtr<Structure> structure, PassRefPtr<SVGForeignObjectElement> impl)
122
 
    : JSSVGElement(structure, impl)
 
122
JSSVGForeignObjectElement::JSSVGForeignObjectElement(NonNullPassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<SVGForeignObjectElement> impl)
 
123
    : JSSVGElement(structure, globalObject, impl)
123
124
{
124
125
}
125
126
 
133
134
    return getStaticValueSlot<JSSVGForeignObjectElement, Base>(exec, &JSSVGForeignObjectElementTable, this, propertyName, slot);
134
135
}
135
136
 
136
 
JSValuePtr jsSVGForeignObjectElementX(ExecState* exec, const Identifier&, const PropertySlot& slot)
137
 
{
138
 
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(static_cast<JSSVGForeignObjectElement*>(asObject(slot.slotBase()))->impl());
 
137
bool JSSVGForeignObjectElement::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
 
138
{
 
139
    return getStaticValueDescriptor<JSSVGForeignObjectElement, Base>(exec, &JSSVGForeignObjectElementTable, this, propertyName, descriptor);
 
140
}
 
141
 
 
142
JSValue jsSVGForeignObjectElementX(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
143
{
 
144
    JSSVGForeignObjectElement* castedThis = static_cast<JSSVGForeignObjectElement*>(asObject(slot.slotBase()));
 
145
    UNUSED_PARAM(exec);
 
146
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(castedThis->impl());
139
147
    RefPtr<SVGAnimatedLength> obj = imp->xAnimated();
140
 
    return toJS(exec, obj.get(), imp);
 
148
    return toJS(exec, castedThis->globalObject(), obj.get(), imp);
141
149
}
142
150
 
143
 
JSValuePtr jsSVGForeignObjectElementY(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
151
JSValue jsSVGForeignObjectElementY(ExecState* exec, const Identifier&, const PropertySlot& slot)
144
152
{
145
 
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(static_cast<JSSVGForeignObjectElement*>(asObject(slot.slotBase()))->impl());
 
153
    JSSVGForeignObjectElement* castedThis = static_cast<JSSVGForeignObjectElement*>(asObject(slot.slotBase()));
 
154
    UNUSED_PARAM(exec);
 
155
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(castedThis->impl());
146
156
    RefPtr<SVGAnimatedLength> obj = imp->yAnimated();
147
 
    return toJS(exec, obj.get(), imp);
 
157
    return toJS(exec, castedThis->globalObject(), obj.get(), imp);
148
158
}
149
159
 
150
 
JSValuePtr jsSVGForeignObjectElementWidth(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
160
JSValue jsSVGForeignObjectElementWidth(ExecState* exec, const Identifier&, const PropertySlot& slot)
151
161
{
152
 
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(static_cast<JSSVGForeignObjectElement*>(asObject(slot.slotBase()))->impl());
 
162
    JSSVGForeignObjectElement* castedThis = static_cast<JSSVGForeignObjectElement*>(asObject(slot.slotBase()));
 
163
    UNUSED_PARAM(exec);
 
164
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(castedThis->impl());
153
165
    RefPtr<SVGAnimatedLength> obj = imp->widthAnimated();
154
 
    return toJS(exec, obj.get(), imp);
 
166
    return toJS(exec, castedThis->globalObject(), obj.get(), imp);
155
167
}
156
168
 
157
 
JSValuePtr jsSVGForeignObjectElementHeight(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
169
JSValue jsSVGForeignObjectElementHeight(ExecState* exec, const Identifier&, const PropertySlot& slot)
158
170
{
159
 
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(static_cast<JSSVGForeignObjectElement*>(asObject(slot.slotBase()))->impl());
 
171
    JSSVGForeignObjectElement* castedThis = static_cast<JSSVGForeignObjectElement*>(asObject(slot.slotBase()));
 
172
    UNUSED_PARAM(exec);
 
173
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(castedThis->impl());
160
174
    RefPtr<SVGAnimatedLength> obj = imp->heightAnimated();
161
 
    return toJS(exec, obj.get(), imp);
162
 
}
163
 
 
164
 
JSValuePtr jsSVGForeignObjectElementRequiredFeatures(ExecState* exec, const Identifier&, const PropertySlot& slot)
165
 
{
166
 
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(static_cast<JSSVGForeignObjectElement*>(asObject(slot.slotBase()))->impl());
167
 
    return toJS(exec, WTF::getPtr(imp->requiredFeatures()), imp);
168
 
}
169
 
 
170
 
JSValuePtr jsSVGForeignObjectElementRequiredExtensions(ExecState* exec, const Identifier&, const PropertySlot& slot)
171
 
{
172
 
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(static_cast<JSSVGForeignObjectElement*>(asObject(slot.slotBase()))->impl());
173
 
    return toJS(exec, WTF::getPtr(imp->requiredExtensions()), imp);
174
 
}
175
 
 
176
 
JSValuePtr jsSVGForeignObjectElementSystemLanguage(ExecState* exec, const Identifier&, const PropertySlot& slot)
177
 
{
178
 
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(static_cast<JSSVGForeignObjectElement*>(asObject(slot.slotBase()))->impl());
179
 
    return toJS(exec, WTF::getPtr(imp->systemLanguage()), imp);
180
 
}
181
 
 
182
 
JSValuePtr jsSVGForeignObjectElementXmllang(ExecState* exec, const Identifier&, const PropertySlot& slot)
183
 
{
184
 
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(static_cast<JSSVGForeignObjectElement*>(asObject(slot.slotBase()))->impl());
 
175
    return toJS(exec, castedThis->globalObject(), obj.get(), imp);
 
176
}
 
177
 
 
178
JSValue jsSVGForeignObjectElementRequiredFeatures(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
179
{
 
180
    JSSVGForeignObjectElement* castedThis = static_cast<JSSVGForeignObjectElement*>(asObject(slot.slotBase()));
 
181
    UNUSED_PARAM(exec);
 
182
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(castedThis->impl());
 
183
    return toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->requiredFeatures()), imp);
 
184
}
 
185
 
 
186
JSValue jsSVGForeignObjectElementRequiredExtensions(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
187
{
 
188
    JSSVGForeignObjectElement* castedThis = static_cast<JSSVGForeignObjectElement*>(asObject(slot.slotBase()));
 
189
    UNUSED_PARAM(exec);
 
190
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(castedThis->impl());
 
191
    return toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->requiredExtensions()), imp);
 
192
}
 
193
 
 
194
JSValue jsSVGForeignObjectElementSystemLanguage(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
195
{
 
196
    JSSVGForeignObjectElement* castedThis = static_cast<JSSVGForeignObjectElement*>(asObject(slot.slotBase()));
 
197
    UNUSED_PARAM(exec);
 
198
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(castedThis->impl());
 
199
    return toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->systemLanguage()), imp);
 
200
}
 
201
 
 
202
JSValue jsSVGForeignObjectElementXmllang(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
203
{
 
204
    JSSVGForeignObjectElement* castedThis = static_cast<JSSVGForeignObjectElement*>(asObject(slot.slotBase()));
 
205
    UNUSED_PARAM(exec);
 
206
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(castedThis->impl());
185
207
    return jsString(exec, imp->xmllang());
186
208
}
187
209
 
188
 
JSValuePtr jsSVGForeignObjectElementXmlspace(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
210
JSValue jsSVGForeignObjectElementXmlspace(ExecState* exec, const Identifier&, const PropertySlot& slot)
189
211
{
190
 
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(static_cast<JSSVGForeignObjectElement*>(asObject(slot.slotBase()))->impl());
 
212
    JSSVGForeignObjectElement* castedThis = static_cast<JSSVGForeignObjectElement*>(asObject(slot.slotBase()));
 
213
    UNUSED_PARAM(exec);
 
214
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(castedThis->impl());
191
215
    return jsString(exec, imp->xmlspace());
192
216
}
193
217
 
194
 
JSValuePtr jsSVGForeignObjectElementExternalResourcesRequired(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
218
JSValue jsSVGForeignObjectElementExternalResourcesRequired(ExecState* exec, const Identifier&, const PropertySlot& slot)
195
219
{
196
 
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(static_cast<JSSVGForeignObjectElement*>(asObject(slot.slotBase()))->impl());
 
220
    JSSVGForeignObjectElement* castedThis = static_cast<JSSVGForeignObjectElement*>(asObject(slot.slotBase()));
 
221
    UNUSED_PARAM(exec);
 
222
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(castedThis->impl());
197
223
    RefPtr<SVGAnimatedBoolean> obj = imp->externalResourcesRequiredAnimated();
198
 
    return toJS(exec, obj.get(), imp);
 
224
    return toJS(exec, castedThis->globalObject(), obj.get(), imp);
199
225
}
200
226
 
201
 
JSValuePtr jsSVGForeignObjectElementClassName(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
227
JSValue jsSVGForeignObjectElementClassName(ExecState* exec, const Identifier&, const PropertySlot& slot)
202
228
{
203
 
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(static_cast<JSSVGForeignObjectElement*>(asObject(slot.slotBase()))->impl());
 
229
    JSSVGForeignObjectElement* castedThis = static_cast<JSSVGForeignObjectElement*>(asObject(slot.slotBase()));
 
230
    UNUSED_PARAM(exec);
 
231
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(castedThis->impl());
204
232
    RefPtr<SVGAnimatedString> obj = imp->classNameAnimated();
205
 
    return toJS(exec, obj.get(), imp);
206
 
}
207
 
 
208
 
JSValuePtr jsSVGForeignObjectElementStyle(ExecState* exec, const Identifier&, const PropertySlot& slot)
209
 
{
210
 
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(static_cast<JSSVGForeignObjectElement*>(asObject(slot.slotBase()))->impl());
211
 
    return toJS(exec, WTF::getPtr(imp->style()));
212
 
}
213
 
 
214
 
JSValuePtr jsSVGForeignObjectElementTransform(ExecState* exec, const Identifier&, const PropertySlot& slot)
215
 
{
216
 
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(static_cast<JSSVGForeignObjectElement*>(asObject(slot.slotBase()))->impl());
 
233
    return toJS(exec, castedThis->globalObject(), obj.get(), imp);
 
234
}
 
235
 
 
236
JSValue jsSVGForeignObjectElementStyle(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
237
{
 
238
    JSSVGForeignObjectElement* castedThis = static_cast<JSSVGForeignObjectElement*>(asObject(slot.slotBase()));
 
239
    UNUSED_PARAM(exec);
 
240
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(castedThis->impl());
 
241
    return toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->style()));
 
242
}
 
243
 
 
244
JSValue jsSVGForeignObjectElementTransform(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
245
{
 
246
    JSSVGForeignObjectElement* castedThis = static_cast<JSSVGForeignObjectElement*>(asObject(slot.slotBase()));
 
247
    UNUSED_PARAM(exec);
 
248
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(castedThis->impl());
217
249
    RefPtr<SVGAnimatedTransformList> obj = imp->transformAnimated();
218
 
    return toJS(exec, obj.get(), imp);
219
 
}
220
 
 
221
 
JSValuePtr jsSVGForeignObjectElementNearestViewportElement(ExecState* exec, const Identifier&, const PropertySlot& slot)
222
 
{
223
 
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(static_cast<JSSVGForeignObjectElement*>(asObject(slot.slotBase()))->impl());
224
 
    return toJS(exec, WTF::getPtr(imp->nearestViewportElement()));
225
 
}
226
 
 
227
 
JSValuePtr jsSVGForeignObjectElementFarthestViewportElement(ExecState* exec, const Identifier&, const PropertySlot& slot)
228
 
{
229
 
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(static_cast<JSSVGForeignObjectElement*>(asObject(slot.slotBase()))->impl());
230
 
    return toJS(exec, WTF::getPtr(imp->farthestViewportElement()));
231
 
}
232
 
 
233
 
void JSSVGForeignObjectElement::put(ExecState* exec, const Identifier& propertyName, JSValuePtr value, PutPropertySlot& slot)
 
250
    return toJS(exec, castedThis->globalObject(), obj.get(), imp);
 
251
}
 
252
 
 
253
JSValue jsSVGForeignObjectElementNearestViewportElement(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
254
{
 
255
    JSSVGForeignObjectElement* castedThis = static_cast<JSSVGForeignObjectElement*>(asObject(slot.slotBase()));
 
256
    UNUSED_PARAM(exec);
 
257
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(castedThis->impl());
 
258
    return toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->nearestViewportElement()));
 
259
}
 
260
 
 
261
JSValue jsSVGForeignObjectElementFarthestViewportElement(ExecState* exec, const Identifier&, const PropertySlot& slot)
 
262
{
 
263
    JSSVGForeignObjectElement* castedThis = static_cast<JSSVGForeignObjectElement*>(asObject(slot.slotBase()));
 
264
    UNUSED_PARAM(exec);
 
265
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(castedThis->impl());
 
266
    return toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->farthestViewportElement()));
 
267
}
 
268
 
 
269
void JSSVGForeignObjectElement::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)
234
270
{
235
271
    lookupPut<JSSVGForeignObjectElement, Base>(exec, propertyName, value, &JSSVGForeignObjectElementTable, this, slot);
236
272
}
237
273
 
238
 
void setJSSVGForeignObjectElementXmllang(ExecState* exec, JSObject* thisObject, JSValuePtr value)
239
 
{
240
 
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(static_cast<JSSVGForeignObjectElement*>(thisObject)->impl());
241
 
    imp->setXmllang(value->toString(exec));
242
 
}
243
 
 
244
 
void setJSSVGForeignObjectElementXmlspace(ExecState* exec, JSObject* thisObject, JSValuePtr value)
245
 
{
246
 
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(static_cast<JSSVGForeignObjectElement*>(thisObject)->impl());
247
 
    imp->setXmlspace(value->toString(exec));
248
 
}
249
 
 
250
 
JSValuePtr jsSVGForeignObjectElementPrototypeFunctionHasExtension(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
251
 
{
252
 
    if (!thisValue->isObject(&JSSVGForeignObjectElement::s_info))
253
 
        return throwError(exec, TypeError);
254
 
    JSSVGForeignObjectElement* castedThisObj = static_cast<JSSVGForeignObjectElement*>(asObject(thisValue));
255
 
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(castedThisObj->impl());
256
 
    const UString& extension = args.at(exec, 0)->toString(exec);
257
 
 
258
 
 
259
 
    JSC::JSValuePtr result = jsBoolean(imp->hasExtension(extension));
260
 
    return result;
261
 
}
262
 
 
263
 
JSValuePtr jsSVGForeignObjectElementPrototypeFunctionGetPresentationAttribute(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
264
 
{
265
 
    if (!thisValue->isObject(&JSSVGForeignObjectElement::s_info))
266
 
        return throwError(exec, TypeError);
267
 
    JSSVGForeignObjectElement* castedThisObj = static_cast<JSSVGForeignObjectElement*>(asObject(thisValue));
268
 
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(castedThisObj->impl());
269
 
    const UString& name = args.at(exec, 0)->toString(exec);
270
 
 
271
 
 
272
 
    JSC::JSValuePtr result = toJS(exec, WTF::getPtr(imp->getPresentationAttribute(name)));
273
 
    return result;
274
 
}
275
 
 
276
 
JSValuePtr jsSVGForeignObjectElementPrototypeFunctionGetBBox(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
277
 
{
278
 
    if (!thisValue->isObject(&JSSVGForeignObjectElement::s_info))
279
 
        return throwError(exec, TypeError);
280
 
    JSSVGForeignObjectElement* castedThisObj = static_cast<JSSVGForeignObjectElement*>(asObject(thisValue));
281
 
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(castedThisObj->impl());
282
 
 
283
 
 
284
 
    JSC::JSValuePtr result = toJS(exec, JSSVGStaticPODTypeWrapper<FloatRect>::create(imp->getBBox()).get(), imp);
285
 
    return result;
286
 
}
287
 
 
288
 
JSValuePtr jsSVGForeignObjectElementPrototypeFunctionGetCTM(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
289
 
{
290
 
    if (!thisValue->isObject(&JSSVGForeignObjectElement::s_info))
291
 
        return throwError(exec, TypeError);
292
 
    JSSVGForeignObjectElement* castedThisObj = static_cast<JSSVGForeignObjectElement*>(asObject(thisValue));
293
 
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(castedThisObj->impl());
294
 
 
295
 
 
296
 
    JSC::JSValuePtr result = toJS(exec, JSSVGStaticPODTypeWrapper<TransformationMatrix>::create(imp->getCTM()).get(), imp);
297
 
    return result;
298
 
}
299
 
 
300
 
JSValuePtr jsSVGForeignObjectElementPrototypeFunctionGetScreenCTM(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
301
 
{
302
 
    if (!thisValue->isObject(&JSSVGForeignObjectElement::s_info))
303
 
        return throwError(exec, TypeError);
304
 
    JSSVGForeignObjectElement* castedThisObj = static_cast<JSSVGForeignObjectElement*>(asObject(thisValue));
305
 
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(castedThisObj->impl());
306
 
 
307
 
 
308
 
    JSC::JSValuePtr result = toJS(exec, JSSVGStaticPODTypeWrapper<TransformationMatrix>::create(imp->getScreenCTM()).get(), imp);
309
 
    return result;
310
 
}
311
 
 
312
 
JSValuePtr jsSVGForeignObjectElementPrototypeFunctionGetTransformToElement(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args)
313
 
{
314
 
    if (!thisValue->isObject(&JSSVGForeignObjectElement::s_info))
 
274
void setJSSVGForeignObjectElementXmllang(ExecState* exec, JSObject* thisObject, JSValue value)
 
275
{
 
276
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(static_cast<JSSVGForeignObjectElement*>(thisObject)->impl());
 
277
    imp->setXmllang(value.toString(exec));
 
278
}
 
279
 
 
280
void setJSSVGForeignObjectElementXmlspace(ExecState* exec, JSObject* thisObject, JSValue value)
 
281
{
 
282
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(static_cast<JSSVGForeignObjectElement*>(thisObject)->impl());
 
283
    imp->setXmlspace(value.toString(exec));
 
284
}
 
285
 
 
286
JSValue JSC_HOST_CALL jsSVGForeignObjectElementPrototypeFunctionHasExtension(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
 
287
{
 
288
    UNUSED_PARAM(args);
 
289
    if (!thisValue.inherits(&JSSVGForeignObjectElement::s_info))
 
290
        return throwError(exec, TypeError);
 
291
    JSSVGForeignObjectElement* castedThisObj = static_cast<JSSVGForeignObjectElement*>(asObject(thisValue));
 
292
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(castedThisObj->impl());
 
293
    const UString& extension = args.at(0).toString(exec);
 
294
 
 
295
 
 
296
    JSC::JSValue result = jsBoolean(imp->hasExtension(extension));
 
297
    return result;
 
298
}
 
299
 
 
300
JSValue JSC_HOST_CALL jsSVGForeignObjectElementPrototypeFunctionGetPresentationAttribute(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
 
301
{
 
302
    UNUSED_PARAM(args);
 
303
    if (!thisValue.inherits(&JSSVGForeignObjectElement::s_info))
 
304
        return throwError(exec, TypeError);
 
305
    JSSVGForeignObjectElement* castedThisObj = static_cast<JSSVGForeignObjectElement*>(asObject(thisValue));
 
306
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(castedThisObj->impl());
 
307
    const UString& name = args.at(0).toString(exec);
 
308
 
 
309
 
 
310
    JSC::JSValue result = toJS(exec, castedThisObj->globalObject(), WTF::getPtr(imp->getPresentationAttribute(name)));
 
311
    return result;
 
312
}
 
313
 
 
314
JSValue JSC_HOST_CALL jsSVGForeignObjectElementPrototypeFunctionGetBBox(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
 
315
{
 
316
    UNUSED_PARAM(args);
 
317
    if (!thisValue.inherits(&JSSVGForeignObjectElement::s_info))
 
318
        return throwError(exec, TypeError);
 
319
    JSSVGForeignObjectElement* castedThisObj = static_cast<JSSVGForeignObjectElement*>(asObject(thisValue));
 
320
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(castedThisObj->impl());
 
321
 
 
322
 
 
323
    JSC::JSValue result = toJS(exec, castedThisObj->globalObject(), JSSVGStaticPODTypeWrapper<FloatRect>::create(imp->getBBox()).get(), imp);
 
324
    return result;
 
325
}
 
326
 
 
327
JSValue JSC_HOST_CALL jsSVGForeignObjectElementPrototypeFunctionGetCTM(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
 
328
{
 
329
    UNUSED_PARAM(args);
 
330
    if (!thisValue.inherits(&JSSVGForeignObjectElement::s_info))
 
331
        return throwError(exec, TypeError);
 
332
    JSSVGForeignObjectElement* castedThisObj = static_cast<JSSVGForeignObjectElement*>(asObject(thisValue));
 
333
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(castedThisObj->impl());
 
334
 
 
335
 
 
336
    JSC::JSValue result = toJS(exec, castedThisObj->globalObject(), JSSVGStaticPODTypeWrapper<TransformationMatrix>::create(imp->getCTM()).get(), imp);
 
337
    return result;
 
338
}
 
339
 
 
340
JSValue JSC_HOST_CALL jsSVGForeignObjectElementPrototypeFunctionGetScreenCTM(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
 
341
{
 
342
    UNUSED_PARAM(args);
 
343
    if (!thisValue.inherits(&JSSVGForeignObjectElement::s_info))
 
344
        return throwError(exec, TypeError);
 
345
    JSSVGForeignObjectElement* castedThisObj = static_cast<JSSVGForeignObjectElement*>(asObject(thisValue));
 
346
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(castedThisObj->impl());
 
347
 
 
348
 
 
349
    JSC::JSValue result = toJS(exec, castedThisObj->globalObject(), JSSVGStaticPODTypeWrapper<TransformationMatrix>::create(imp->getScreenCTM()).get(), imp);
 
350
    return result;
 
351
}
 
352
 
 
353
JSValue JSC_HOST_CALL jsSVGForeignObjectElementPrototypeFunctionGetTransformToElement(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
 
354
{
 
355
    UNUSED_PARAM(args);
 
356
    if (!thisValue.inherits(&JSSVGForeignObjectElement::s_info))
315
357
        return throwError(exec, TypeError);
316
358
    JSSVGForeignObjectElement* castedThisObj = static_cast<JSSVGForeignObjectElement*>(asObject(thisValue));
317
359
    SVGForeignObjectElement* imp = static_cast<SVGForeignObjectElement*>(castedThisObj->impl());
318
360
    ExceptionCode ec = 0;
319
 
    SVGElement* element = toSVGElement(args.at(exec, 0));
320
 
 
321
 
 
322
 
    JSC::JSValuePtr result = toJS(exec, JSSVGStaticPODTypeWrapper<TransformationMatrix>::create(imp->getTransformToElement(element, ec)).get(), imp);
 
361
    SVGElement* element = toSVGElement(args.at(0));
 
362
 
 
363
 
 
364
    JSC::JSValue result = toJS(exec, castedThisObj->globalObject(), JSSVGStaticPODTypeWrapper<TransformationMatrix>::create(imp->getTransformToElement(element, ec)).get(), imp);
323
365
    setDOMException(exec, ec);
324
366
    return result;
325
367
}