|
1 /* |
|
2 This file is part of the WebKit open source project. |
|
3 This file has been generated by generate-bindings.pl. DO NOT MODIFY! |
|
4 |
|
5 This library is free software; you can redistribute it and/or |
|
6 modify it under the terms of the GNU Library General Public |
|
7 License as published by the Free Software Foundation; either |
|
8 version 2 of the License, or (at your option) any later version. |
|
9 |
|
10 This library is distributed in the hope that it will be useful, |
|
11 but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
13 Library General Public License for more details. |
|
14 |
|
15 You should have received a copy of the GNU Library General Public License |
|
16 along with this library; see the file COPYING.LIB. If not, write to |
|
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
|
18 Boston, MA 02110-1301, USA. |
|
19 */ |
|
20 |
|
21 #include "config.h" |
|
22 |
|
23 #if ENABLE(SVG) |
|
24 |
|
25 #include "JSSVGMaskElement.h" |
|
26 |
|
27 #include "CSSMutableStyleDeclaration.h" |
|
28 #include "CSSStyleDeclaration.h" |
|
29 #include "CSSValue.h" |
|
30 #include "JSCSSStyleDeclaration.h" |
|
31 #include "JSCSSValue.h" |
|
32 #include "JSSVGAnimatedBoolean.h" |
|
33 #include "JSSVGAnimatedEnumeration.h" |
|
34 #include "JSSVGAnimatedLength.h" |
|
35 #include "JSSVGAnimatedString.h" |
|
36 #include "JSSVGStringList.h" |
|
37 #include "KURL.h" |
|
38 #include "SVGMaskElement.h" |
|
39 #include "SVGStringList.h" |
|
40 #include <runtime/Error.h> |
|
41 #include <runtime/JSString.h> |
|
42 #include <wtf/GetPtr.h> |
|
43 |
|
44 using namespace JSC; |
|
45 |
|
46 namespace WebCore { |
|
47 |
|
48 ASSERT_CLASS_FITS_IN_CELL(JSSVGMaskElement); |
|
49 |
|
50 /* Hash table */ |
|
51 #if ENABLE(JIT) |
|
52 #define THUNK_GENERATOR(generator) , generator |
|
53 #else |
|
54 #define THUNK_GENERATOR(generator) |
|
55 #endif |
|
56 |
|
57 static const HashTableValue JSSVGMaskElementTableValues[16] = |
|
58 { |
|
59 { "maskUnits", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGMaskElementMaskUnits), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
60 { "maskContentUnits", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGMaskElementMaskContentUnits), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
61 { "x", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGMaskElementX), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
62 { "y", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGMaskElementY), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
63 { "width", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGMaskElementWidth), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
64 { "height", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGMaskElementHeight), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
65 { "requiredFeatures", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGMaskElementRequiredFeatures), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
66 { "requiredExtensions", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGMaskElementRequiredExtensions), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
67 { "systemLanguage", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGMaskElementSystemLanguage), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
68 { "xmllang", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGMaskElementXmllang), (intptr_t)setJSSVGMaskElementXmllang THUNK_GENERATOR(0) }, |
|
69 { "xmlspace", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGMaskElementXmlspace), (intptr_t)setJSSVGMaskElementXmlspace THUNK_GENERATOR(0) }, |
|
70 { "externalResourcesRequired", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGMaskElementExternalResourcesRequired), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
71 { "className", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGMaskElementClassName), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
72 { "style", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGMaskElementStyle), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
73 { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGMaskElementConstructor), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
74 { 0, 0, 0, 0 THUNK_GENERATOR(0) } |
|
75 }; |
|
76 |
|
77 #undef THUNK_GENERATOR |
|
78 static JSC_CONST_HASHTABLE HashTable JSSVGMaskElementTable = { 37, 31, JSSVGMaskElementTableValues, 0 }; |
|
79 /* Hash table for constructor */ |
|
80 #if ENABLE(JIT) |
|
81 #define THUNK_GENERATOR(generator) , generator |
|
82 #else |
|
83 #define THUNK_GENERATOR(generator) |
|
84 #endif |
|
85 |
|
86 static const HashTableValue JSSVGMaskElementConstructorTableValues[1] = |
|
87 { |
|
88 { 0, 0, 0, 0 THUNK_GENERATOR(0) } |
|
89 }; |
|
90 |
|
91 #undef THUNK_GENERATOR |
|
92 static JSC_CONST_HASHTABLE HashTable JSSVGMaskElementConstructorTable = { 1, 0, JSSVGMaskElementConstructorTableValues, 0 }; |
|
93 class JSSVGMaskElementConstructor : public DOMConstructorObject { |
|
94 public: |
|
95 JSSVGMaskElementConstructor(JSC::ExecState*, JSDOMGlobalObject*); |
|
96 |
|
97 virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&); |
|
98 virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&); |
|
99 virtual const JSC::ClassInfo* classInfo() const { return &s_info; } |
|
100 static const JSC::ClassInfo s_info; |
|
101 static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype) |
|
102 { |
|
103 return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount); |
|
104 } |
|
105 protected: |
|
106 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags; |
|
107 }; |
|
108 |
|
109 const ClassInfo JSSVGMaskElementConstructor::s_info = { "SVGMaskElementConstructor", 0, &JSSVGMaskElementConstructorTable, 0 }; |
|
110 |
|
111 JSSVGMaskElementConstructor::JSSVGMaskElementConstructor(ExecState* exec, JSDOMGlobalObject* globalObject) |
|
112 : DOMConstructorObject(JSSVGMaskElementConstructor::createStructure(globalObject->objectPrototype()), globalObject) |
|
113 { |
|
114 putDirect(exec->propertyNames().prototype, JSSVGMaskElementPrototype::self(exec, globalObject), DontDelete | ReadOnly); |
|
115 } |
|
116 |
|
117 bool JSSVGMaskElementConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) |
|
118 { |
|
119 return getStaticValueSlot<JSSVGMaskElementConstructor, DOMObject>(exec, &JSSVGMaskElementConstructorTable, this, propertyName, slot); |
|
120 } |
|
121 |
|
122 bool JSSVGMaskElementConstructor::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor) |
|
123 { |
|
124 return getStaticValueDescriptor<JSSVGMaskElementConstructor, DOMObject>(exec, &JSSVGMaskElementConstructorTable, this, propertyName, descriptor); |
|
125 } |
|
126 |
|
127 /* Hash table for prototype */ |
|
128 #if ENABLE(JIT) |
|
129 #define THUNK_GENERATOR(generator) , generator |
|
130 #else |
|
131 #define THUNK_GENERATOR(generator) |
|
132 #endif |
|
133 |
|
134 static const HashTableValue JSSVGMaskElementPrototypeTableValues[3] = |
|
135 { |
|
136 { "hasExtension", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsSVGMaskElementPrototypeFunctionHasExtension), (intptr_t)1 THUNK_GENERATOR(0) }, |
|
137 { "getPresentationAttribute", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsSVGMaskElementPrototypeFunctionGetPresentationAttribute), (intptr_t)1 THUNK_GENERATOR(0) }, |
|
138 { 0, 0, 0, 0 THUNK_GENERATOR(0) } |
|
139 }; |
|
140 |
|
141 #undef THUNK_GENERATOR |
|
142 static JSC_CONST_HASHTABLE HashTable JSSVGMaskElementPrototypeTable = { 4, 3, JSSVGMaskElementPrototypeTableValues, 0 }; |
|
143 const ClassInfo JSSVGMaskElementPrototype::s_info = { "SVGMaskElementPrototype", 0, &JSSVGMaskElementPrototypeTable, 0 }; |
|
144 |
|
145 JSObject* JSSVGMaskElementPrototype::self(ExecState* exec, JSGlobalObject* globalObject) |
|
146 { |
|
147 return getDOMPrototype<JSSVGMaskElement>(exec, globalObject); |
|
148 } |
|
149 |
|
150 bool JSSVGMaskElementPrototype::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) |
|
151 { |
|
152 return getStaticFunctionSlot<JSObject>(exec, &JSSVGMaskElementPrototypeTable, this, propertyName, slot); |
|
153 } |
|
154 |
|
155 bool JSSVGMaskElementPrototype::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor) |
|
156 { |
|
157 return getStaticFunctionDescriptor<JSObject>(exec, &JSSVGMaskElementPrototypeTable, this, propertyName, descriptor); |
|
158 } |
|
159 |
|
160 const ClassInfo JSSVGMaskElement::s_info = { "SVGMaskElement", &JSSVGElement::s_info, &JSSVGMaskElementTable, 0 }; |
|
161 |
|
162 JSSVGMaskElement::JSSVGMaskElement(NonNullPassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<SVGMaskElement> impl) |
|
163 : JSSVGElement(structure, globalObject, impl) |
|
164 { |
|
165 } |
|
166 |
|
167 JSObject* JSSVGMaskElement::createPrototype(ExecState* exec, JSGlobalObject* globalObject) |
|
168 { |
|
169 return new (exec) JSSVGMaskElementPrototype(globalObject, JSSVGMaskElementPrototype::createStructure(JSSVGElementPrototype::self(exec, globalObject))); |
|
170 } |
|
171 |
|
172 bool JSSVGMaskElement::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) |
|
173 { |
|
174 return getStaticValueSlot<JSSVGMaskElement, Base>(exec, &JSSVGMaskElementTable, this, propertyName, slot); |
|
175 } |
|
176 |
|
177 bool JSSVGMaskElement::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor) |
|
178 { |
|
179 return getStaticValueDescriptor<JSSVGMaskElement, Base>(exec, &JSSVGMaskElementTable, this, propertyName, descriptor); |
|
180 } |
|
181 |
|
182 JSValue jsSVGMaskElementMaskUnits(ExecState* exec, JSValue slotBase, const Identifier&) |
|
183 { |
|
184 JSSVGMaskElement* castedThis = static_cast<JSSVGMaskElement*>(asObject(slotBase)); |
|
185 UNUSED_PARAM(exec); |
|
186 SVGMaskElement* imp = static_cast<SVGMaskElement*>(castedThis->impl()); |
|
187 RefPtr<SVGAnimatedEnumeration> obj = imp->maskUnitsAnimated(); |
|
188 JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); |
|
189 return result; |
|
190 } |
|
191 |
|
192 JSValue jsSVGMaskElementMaskContentUnits(ExecState* exec, JSValue slotBase, const Identifier&) |
|
193 { |
|
194 JSSVGMaskElement* castedThis = static_cast<JSSVGMaskElement*>(asObject(slotBase)); |
|
195 UNUSED_PARAM(exec); |
|
196 SVGMaskElement* imp = static_cast<SVGMaskElement*>(castedThis->impl()); |
|
197 RefPtr<SVGAnimatedEnumeration> obj = imp->maskContentUnitsAnimated(); |
|
198 JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); |
|
199 return result; |
|
200 } |
|
201 |
|
202 JSValue jsSVGMaskElementX(ExecState* exec, JSValue slotBase, const Identifier&) |
|
203 { |
|
204 JSSVGMaskElement* castedThis = static_cast<JSSVGMaskElement*>(asObject(slotBase)); |
|
205 UNUSED_PARAM(exec); |
|
206 SVGMaskElement* imp = static_cast<SVGMaskElement*>(castedThis->impl()); |
|
207 RefPtr<SVGAnimatedLength> obj = imp->xAnimated(); |
|
208 JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); |
|
209 return result; |
|
210 } |
|
211 |
|
212 JSValue jsSVGMaskElementY(ExecState* exec, JSValue slotBase, const Identifier&) |
|
213 { |
|
214 JSSVGMaskElement* castedThis = static_cast<JSSVGMaskElement*>(asObject(slotBase)); |
|
215 UNUSED_PARAM(exec); |
|
216 SVGMaskElement* imp = static_cast<SVGMaskElement*>(castedThis->impl()); |
|
217 RefPtr<SVGAnimatedLength> obj = imp->yAnimated(); |
|
218 JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); |
|
219 return result; |
|
220 } |
|
221 |
|
222 JSValue jsSVGMaskElementWidth(ExecState* exec, JSValue slotBase, const Identifier&) |
|
223 { |
|
224 JSSVGMaskElement* castedThis = static_cast<JSSVGMaskElement*>(asObject(slotBase)); |
|
225 UNUSED_PARAM(exec); |
|
226 SVGMaskElement* imp = static_cast<SVGMaskElement*>(castedThis->impl()); |
|
227 RefPtr<SVGAnimatedLength> obj = imp->widthAnimated(); |
|
228 JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); |
|
229 return result; |
|
230 } |
|
231 |
|
232 JSValue jsSVGMaskElementHeight(ExecState* exec, JSValue slotBase, const Identifier&) |
|
233 { |
|
234 JSSVGMaskElement* castedThis = static_cast<JSSVGMaskElement*>(asObject(slotBase)); |
|
235 UNUSED_PARAM(exec); |
|
236 SVGMaskElement* imp = static_cast<SVGMaskElement*>(castedThis->impl()); |
|
237 RefPtr<SVGAnimatedLength> obj = imp->heightAnimated(); |
|
238 JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); |
|
239 return result; |
|
240 } |
|
241 |
|
242 JSValue jsSVGMaskElementRequiredFeatures(ExecState* exec, JSValue slotBase, const Identifier&) |
|
243 { |
|
244 JSSVGMaskElement* castedThis = static_cast<JSSVGMaskElement*>(asObject(slotBase)); |
|
245 UNUSED_PARAM(exec); |
|
246 SVGMaskElement* imp = static_cast<SVGMaskElement*>(castedThis->impl()); |
|
247 JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->requiredFeatures()), imp); |
|
248 return result; |
|
249 } |
|
250 |
|
251 JSValue jsSVGMaskElementRequiredExtensions(ExecState* exec, JSValue slotBase, const Identifier&) |
|
252 { |
|
253 JSSVGMaskElement* castedThis = static_cast<JSSVGMaskElement*>(asObject(slotBase)); |
|
254 UNUSED_PARAM(exec); |
|
255 SVGMaskElement* imp = static_cast<SVGMaskElement*>(castedThis->impl()); |
|
256 JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->requiredExtensions()), imp); |
|
257 return result; |
|
258 } |
|
259 |
|
260 JSValue jsSVGMaskElementSystemLanguage(ExecState* exec, JSValue slotBase, const Identifier&) |
|
261 { |
|
262 JSSVGMaskElement* castedThis = static_cast<JSSVGMaskElement*>(asObject(slotBase)); |
|
263 UNUSED_PARAM(exec); |
|
264 SVGMaskElement* imp = static_cast<SVGMaskElement*>(castedThis->impl()); |
|
265 JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->systemLanguage()), imp); |
|
266 return result; |
|
267 } |
|
268 |
|
269 JSValue jsSVGMaskElementXmllang(ExecState* exec, JSValue slotBase, const Identifier&) |
|
270 { |
|
271 JSSVGMaskElement* castedThis = static_cast<JSSVGMaskElement*>(asObject(slotBase)); |
|
272 UNUSED_PARAM(exec); |
|
273 SVGMaskElement* imp = static_cast<SVGMaskElement*>(castedThis->impl()); |
|
274 JSValue result = jsString(exec, imp->xmllang()); |
|
275 return result; |
|
276 } |
|
277 |
|
278 JSValue jsSVGMaskElementXmlspace(ExecState* exec, JSValue slotBase, const Identifier&) |
|
279 { |
|
280 JSSVGMaskElement* castedThis = static_cast<JSSVGMaskElement*>(asObject(slotBase)); |
|
281 UNUSED_PARAM(exec); |
|
282 SVGMaskElement* imp = static_cast<SVGMaskElement*>(castedThis->impl()); |
|
283 JSValue result = jsString(exec, imp->xmlspace()); |
|
284 return result; |
|
285 } |
|
286 |
|
287 JSValue jsSVGMaskElementExternalResourcesRequired(ExecState* exec, JSValue slotBase, const Identifier&) |
|
288 { |
|
289 JSSVGMaskElement* castedThis = static_cast<JSSVGMaskElement*>(asObject(slotBase)); |
|
290 UNUSED_PARAM(exec); |
|
291 SVGMaskElement* imp = static_cast<SVGMaskElement*>(castedThis->impl()); |
|
292 RefPtr<SVGAnimatedBoolean> obj = imp->externalResourcesRequiredAnimated(); |
|
293 JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); |
|
294 return result; |
|
295 } |
|
296 |
|
297 JSValue jsSVGMaskElementClassName(ExecState* exec, JSValue slotBase, const Identifier&) |
|
298 { |
|
299 JSSVGMaskElement* castedThis = static_cast<JSSVGMaskElement*>(asObject(slotBase)); |
|
300 UNUSED_PARAM(exec); |
|
301 SVGMaskElement* imp = static_cast<SVGMaskElement*>(castedThis->impl()); |
|
302 RefPtr<SVGAnimatedString> obj = imp->classNameAnimated(); |
|
303 JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); |
|
304 return result; |
|
305 } |
|
306 |
|
307 JSValue jsSVGMaskElementStyle(ExecState* exec, JSValue slotBase, const Identifier&) |
|
308 { |
|
309 JSSVGMaskElement* castedThis = static_cast<JSSVGMaskElement*>(asObject(slotBase)); |
|
310 UNUSED_PARAM(exec); |
|
311 SVGMaskElement* imp = static_cast<SVGMaskElement*>(castedThis->impl()); |
|
312 JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->style())); |
|
313 return result; |
|
314 } |
|
315 |
|
316 JSValue jsSVGMaskElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&) |
|
317 { |
|
318 JSSVGMaskElement* domObject = static_cast<JSSVGMaskElement*>(asObject(slotBase)); |
|
319 return JSSVGMaskElement::getConstructor(exec, domObject->globalObject()); |
|
320 } |
|
321 void JSSVGMaskElement::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot) |
|
322 { |
|
323 lookupPut<JSSVGMaskElement, Base>(exec, propertyName, value, &JSSVGMaskElementTable, this, slot); |
|
324 } |
|
325 |
|
326 void setJSSVGMaskElementXmllang(ExecState* exec, JSObject* thisObject, JSValue value) |
|
327 { |
|
328 JSSVGMaskElement* castedThis = static_cast<JSSVGMaskElement*>(thisObject); |
|
329 SVGMaskElement* imp = static_cast<SVGMaskElement*>(castedThis->impl()); |
|
330 imp->setXmllang(ustringToString(value.toString(exec))); |
|
331 } |
|
332 |
|
333 void setJSSVGMaskElementXmlspace(ExecState* exec, JSObject* thisObject, JSValue value) |
|
334 { |
|
335 JSSVGMaskElement* castedThis = static_cast<JSSVGMaskElement*>(thisObject); |
|
336 SVGMaskElement* imp = static_cast<SVGMaskElement*>(castedThis->impl()); |
|
337 imp->setXmlspace(ustringToString(value.toString(exec))); |
|
338 } |
|
339 |
|
340 JSValue JSSVGMaskElement::getConstructor(ExecState* exec, JSGlobalObject* globalObject) |
|
341 { |
|
342 return getDOMConstructor<JSSVGMaskElementConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject)); |
|
343 } |
|
344 |
|
345 EncodedJSValue JSC_HOST_CALL jsSVGMaskElementPrototypeFunctionHasExtension(ExecState* exec) |
|
346 { |
|
347 JSValue thisValue = exec->hostThisValue(); |
|
348 if (!thisValue.inherits(&JSSVGMaskElement::s_info)) |
|
349 return throwVMTypeError(exec); |
|
350 JSSVGMaskElement* castedThis = static_cast<JSSVGMaskElement*>(asObject(thisValue)); |
|
351 SVGMaskElement* imp = static_cast<SVGMaskElement*>(castedThis->impl()); |
|
352 const String& extension = ustringToString(exec->argument(0).toString(exec)); |
|
353 |
|
354 |
|
355 JSC::JSValue result = jsBoolean(imp->hasExtension(extension)); |
|
356 return JSValue::encode(result); |
|
357 } |
|
358 |
|
359 EncodedJSValue JSC_HOST_CALL jsSVGMaskElementPrototypeFunctionGetPresentationAttribute(ExecState* exec) |
|
360 { |
|
361 JSValue thisValue = exec->hostThisValue(); |
|
362 if (!thisValue.inherits(&JSSVGMaskElement::s_info)) |
|
363 return throwVMTypeError(exec); |
|
364 JSSVGMaskElement* castedThis = static_cast<JSSVGMaskElement*>(asObject(thisValue)); |
|
365 SVGMaskElement* imp = static_cast<SVGMaskElement*>(castedThis->impl()); |
|
366 const String& name = ustringToString(exec->argument(0).toString(exec)); |
|
367 |
|
368 |
|
369 JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->getPresentationAttribute(name))); |
|
370 return JSValue::encode(result); |
|
371 } |
|
372 |
|
373 |
|
374 } |
|
375 |
|
376 #endif // ENABLE(SVG) |