2 This file is part of the WebKit open source project.
3 This file has been generated by generate-bindings.pl. DO NOT MODIFY!
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.
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.
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.
23 #if ENABLE(FILTERS) && ENABLE(SVG)
25 #include "JSSVGFESpotLightElement.h"
27 #include "JSSVGAnimatedNumber.h"
28 #include "SVGFESpotLightElement.h"
29 #include <wtf/GetPtr.h>
35 ASSERT_CLASS_FITS_IN_CELL(JSSVGFESpotLightElement);
39 #define THUNK_GENERATOR(generator) , generator
41 #define THUNK_GENERATOR(generator)
44 #define INTRINSIC(intrinsic) , intrinsic
46 #define INTRINSIC(intrinsic)
49 static const HashTableValue JSSVGFESpotLightElementTableValues[] =
51 { "x", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFESpotLightElementX), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
52 { "y", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFESpotLightElementY), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
53 { "z", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFESpotLightElementZ), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
54 { "pointsAtX", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFESpotLightElementPointsAtX), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
55 { "pointsAtY", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFESpotLightElementPointsAtY), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
56 { "pointsAtZ", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFESpotLightElementPointsAtZ), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
57 { "specularExponent", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFESpotLightElementSpecularExponent), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
58 { "limitingConeAngle", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFESpotLightElementLimitingConeAngle), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
59 { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFESpotLightElementConstructor), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
60 { 0, 0, 0, 0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) }
63 #undef THUNK_GENERATOR
64 static const HashTable JSSVGFESpotLightElementTable = { 32, 31, JSSVGFESpotLightElementTableValues, 0 };
65 /* Hash table for constructor */
67 #define THUNK_GENERATOR(generator) , generator
69 #define THUNK_GENERATOR(generator)
72 #define INTRINSIC(intrinsic) , intrinsic
74 #define INTRINSIC(intrinsic)
77 static const HashTableValue JSSVGFESpotLightElementConstructorTableValues[] =
79 { 0, 0, 0, 0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) }
82 #undef THUNK_GENERATOR
83 static const HashTable JSSVGFESpotLightElementConstructorTable = { 1, 0, JSSVGFESpotLightElementConstructorTableValues, 0 };
84 const ClassInfo JSSVGFESpotLightElementConstructor::s_info = { "SVGFESpotLightElementConstructor", &DOMConstructorObject::s_info, &JSSVGFESpotLightElementConstructorTable, 0, CREATE_METHOD_TABLE(JSSVGFESpotLightElementConstructor) };
86 JSSVGFESpotLightElementConstructor::JSSVGFESpotLightElementConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
87 : DOMConstructorObject(structure, globalObject)
91 void JSSVGFESpotLightElementConstructor::finishCreation(ExecState* exec, JSDOMGlobalObject* globalObject)
93 Base::finishCreation(exec->globalData());
94 ASSERT(inherits(&s_info));
95 putDirect(exec->globalData(), exec->propertyNames().prototype, JSSVGFESpotLightElementPrototype::self(exec, globalObject), DontDelete | ReadOnly);
98 bool JSSVGFESpotLightElementConstructor::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
100 return getStaticValueSlot<JSSVGFESpotLightElementConstructor, JSDOMWrapper>(exec, &JSSVGFESpotLightElementConstructorTable, static_cast<JSSVGFESpotLightElementConstructor*>(cell), propertyName, slot);
103 bool JSSVGFESpotLightElementConstructor::getOwnPropertyDescriptor(JSObject* object, ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
105 return getStaticValueDescriptor<JSSVGFESpotLightElementConstructor, JSDOMWrapper>(exec, &JSSVGFESpotLightElementConstructorTable, static_cast<JSSVGFESpotLightElementConstructor*>(object), propertyName, descriptor);
108 /* Hash table for prototype */
110 #define THUNK_GENERATOR(generator) , generator
112 #define THUNK_GENERATOR(generator)
115 #define INTRINSIC(intrinsic) , intrinsic
117 #define INTRINSIC(intrinsic)
120 static const HashTableValue JSSVGFESpotLightElementPrototypeTableValues[] =
122 { 0, 0, 0, 0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) }
125 #undef THUNK_GENERATOR
126 static const HashTable JSSVGFESpotLightElementPrototypeTable = { 1, 0, JSSVGFESpotLightElementPrototypeTableValues, 0 };
127 const ClassInfo JSSVGFESpotLightElementPrototype::s_info = { "SVGFESpotLightElementPrototype", &JSC::JSNonFinalObject::s_info, &JSSVGFESpotLightElementPrototypeTable, 0, CREATE_METHOD_TABLE(JSSVGFESpotLightElementPrototype) };
129 JSObject* JSSVGFESpotLightElementPrototype::self(ExecState* exec, JSGlobalObject* globalObject)
131 return getDOMPrototype<JSSVGFESpotLightElement>(exec, globalObject);
134 const ClassInfo JSSVGFESpotLightElement::s_info = { "SVGFESpotLightElement", &JSSVGElement::s_info, &JSSVGFESpotLightElementTable, 0 , CREATE_METHOD_TABLE(JSSVGFESpotLightElement) };
136 JSSVGFESpotLightElement::JSSVGFESpotLightElement(Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<SVGFESpotLightElement> impl)
137 : JSSVGElement(structure, globalObject, impl)
141 void JSSVGFESpotLightElement::finishCreation(JSGlobalData& globalData)
143 Base::finishCreation(globalData);
144 ASSERT(inherits(&s_info));
147 JSObject* JSSVGFESpotLightElement::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
149 return JSSVGFESpotLightElementPrototype::create(exec->globalData(), globalObject, JSSVGFESpotLightElementPrototype::createStructure(exec->globalData(), globalObject, JSSVGElementPrototype::self(exec, globalObject)));
152 bool JSSVGFESpotLightElement::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
154 JSSVGFESpotLightElement* thisObject = jsCast<JSSVGFESpotLightElement*>(cell);
155 ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
156 return getStaticValueSlot<JSSVGFESpotLightElement, Base>(exec, &JSSVGFESpotLightElementTable, thisObject, propertyName, slot);
159 bool JSSVGFESpotLightElement::getOwnPropertyDescriptor(JSObject* object, ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
161 JSSVGFESpotLightElement* thisObject = jsCast<JSSVGFESpotLightElement*>(object);
162 ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
163 return getStaticValueDescriptor<JSSVGFESpotLightElement, Base>(exec, &JSSVGFESpotLightElementTable, thisObject, propertyName, descriptor);
166 JSValue jsSVGFESpotLightElementX(ExecState* exec, JSValue slotBase, const Identifier&)
168 JSSVGFESpotLightElement* castedThis = static_cast<JSSVGFESpotLightElement*>(asObject(slotBase));
170 SVGFESpotLightElement* imp = static_cast<SVGFESpotLightElement*>(castedThis->impl());
171 RefPtr<SVGAnimatedNumber> obj = imp->xAnimated();
172 JSValue result = toJS(exec, castedThis->globalObject(), obj.get());
177 JSValue jsSVGFESpotLightElementY(ExecState* exec, JSValue slotBase, const Identifier&)
179 JSSVGFESpotLightElement* castedThis = static_cast<JSSVGFESpotLightElement*>(asObject(slotBase));
181 SVGFESpotLightElement* imp = static_cast<SVGFESpotLightElement*>(castedThis->impl());
182 RefPtr<SVGAnimatedNumber> obj = imp->yAnimated();
183 JSValue result = toJS(exec, castedThis->globalObject(), obj.get());
188 JSValue jsSVGFESpotLightElementZ(ExecState* exec, JSValue slotBase, const Identifier&)
190 JSSVGFESpotLightElement* castedThis = static_cast<JSSVGFESpotLightElement*>(asObject(slotBase));
192 SVGFESpotLightElement* imp = static_cast<SVGFESpotLightElement*>(castedThis->impl());
193 RefPtr<SVGAnimatedNumber> obj = imp->zAnimated();
194 JSValue result = toJS(exec, castedThis->globalObject(), obj.get());
199 JSValue jsSVGFESpotLightElementPointsAtX(ExecState* exec, JSValue slotBase, const Identifier&)
201 JSSVGFESpotLightElement* castedThis = static_cast<JSSVGFESpotLightElement*>(asObject(slotBase));
203 SVGFESpotLightElement* imp = static_cast<SVGFESpotLightElement*>(castedThis->impl());
204 RefPtr<SVGAnimatedNumber> obj = imp->pointsAtXAnimated();
205 JSValue result = toJS(exec, castedThis->globalObject(), obj.get());
210 JSValue jsSVGFESpotLightElementPointsAtY(ExecState* exec, JSValue slotBase, const Identifier&)
212 JSSVGFESpotLightElement* castedThis = static_cast<JSSVGFESpotLightElement*>(asObject(slotBase));
214 SVGFESpotLightElement* imp = static_cast<SVGFESpotLightElement*>(castedThis->impl());
215 RefPtr<SVGAnimatedNumber> obj = imp->pointsAtYAnimated();
216 JSValue result = toJS(exec, castedThis->globalObject(), obj.get());
221 JSValue jsSVGFESpotLightElementPointsAtZ(ExecState* exec, JSValue slotBase, const Identifier&)
223 JSSVGFESpotLightElement* castedThis = static_cast<JSSVGFESpotLightElement*>(asObject(slotBase));
225 SVGFESpotLightElement* imp = static_cast<SVGFESpotLightElement*>(castedThis->impl());
226 RefPtr<SVGAnimatedNumber> obj = imp->pointsAtZAnimated();
227 JSValue result = toJS(exec, castedThis->globalObject(), obj.get());
232 JSValue jsSVGFESpotLightElementSpecularExponent(ExecState* exec, JSValue slotBase, const Identifier&)
234 JSSVGFESpotLightElement* castedThis = static_cast<JSSVGFESpotLightElement*>(asObject(slotBase));
236 SVGFESpotLightElement* imp = static_cast<SVGFESpotLightElement*>(castedThis->impl());
237 RefPtr<SVGAnimatedNumber> obj = imp->specularExponentAnimated();
238 JSValue result = toJS(exec, castedThis->globalObject(), obj.get());
243 JSValue jsSVGFESpotLightElementLimitingConeAngle(ExecState* exec, JSValue slotBase, const Identifier&)
245 JSSVGFESpotLightElement* castedThis = static_cast<JSSVGFESpotLightElement*>(asObject(slotBase));
247 SVGFESpotLightElement* imp = static_cast<SVGFESpotLightElement*>(castedThis->impl());
248 RefPtr<SVGAnimatedNumber> obj = imp->limitingConeAngleAnimated();
249 JSValue result = toJS(exec, castedThis->globalObject(), obj.get());
254 JSValue jsSVGFESpotLightElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
256 JSSVGFESpotLightElement* domObject = static_cast<JSSVGFESpotLightElement*>(asObject(slotBase));
257 return JSSVGFESpotLightElement::getConstructor(exec, domObject->globalObject());
260 JSValue JSSVGFESpotLightElement::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
262 return getDOMConstructor<JSSVGFESpotLightElementConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));
268 #endif // ENABLE(FILTERS) && ENABLE(SVG)