tizen beta release
[profile/ivi/webkit-efl.git] / DerivedSources / WebCore / JSSVGFESpotLightElement.cpp
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(FILTERS) && ENABLE(SVG)
24
25 #include "JSSVGFESpotLightElement.h"
26
27 #include "JSSVGAnimatedNumber.h"
28 #include "SVGFESpotLightElement.h"
29 #include <wtf/GetPtr.h>
30
31 using namespace JSC;
32
33 namespace WebCore {
34
35 ASSERT_CLASS_FITS_IN_CELL(JSSVGFESpotLightElement);
36
37 /* Hash table */
38 #if ENABLE(JIT)
39 #define THUNK_GENERATOR(generator) , generator
40 #else
41 #define THUNK_GENERATOR(generator)
42 #endif
43 #if ENABLE(DFG_JIT)
44 #define INTRINSIC(intrinsic) , intrinsic
45 #else
46 #define INTRINSIC(intrinsic)
47 #endif
48
49 static const HashTableValue JSSVGFESpotLightElementTableValues[] =
50 {
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) }
61 };
62
63 #undef THUNK_GENERATOR
64 static const HashTable JSSVGFESpotLightElementTable = { 32, 31, JSSVGFESpotLightElementTableValues, 0 };
65 /* Hash table for constructor */
66 #if ENABLE(JIT)
67 #define THUNK_GENERATOR(generator) , generator
68 #else
69 #define THUNK_GENERATOR(generator)
70 #endif
71 #if ENABLE(DFG_JIT)
72 #define INTRINSIC(intrinsic) , intrinsic
73 #else
74 #define INTRINSIC(intrinsic)
75 #endif
76
77 static const HashTableValue JSSVGFESpotLightElementConstructorTableValues[] =
78 {
79     { 0, 0, 0, 0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) }
80 };
81
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) };
85
86 JSSVGFESpotLightElementConstructor::JSSVGFESpotLightElementConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
87     : DOMConstructorObject(structure, globalObject)
88 {
89 }
90
91 void JSSVGFESpotLightElementConstructor::finishCreation(ExecState* exec, JSDOMGlobalObject* globalObject)
92 {
93     Base::finishCreation(exec->globalData());
94     ASSERT(inherits(&s_info));
95     putDirect(exec->globalData(), exec->propertyNames().prototype, JSSVGFESpotLightElementPrototype::self(exec, globalObject), DontDelete | ReadOnly);
96 }
97
98 bool JSSVGFESpotLightElementConstructor::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
99 {
100     return getStaticValueSlot<JSSVGFESpotLightElementConstructor, JSDOMWrapper>(exec, &JSSVGFESpotLightElementConstructorTable, static_cast<JSSVGFESpotLightElementConstructor*>(cell), propertyName, slot);
101 }
102
103 bool JSSVGFESpotLightElementConstructor::getOwnPropertyDescriptor(JSObject* object, ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
104 {
105     return getStaticValueDescriptor<JSSVGFESpotLightElementConstructor, JSDOMWrapper>(exec, &JSSVGFESpotLightElementConstructorTable, static_cast<JSSVGFESpotLightElementConstructor*>(object), propertyName, descriptor);
106 }
107
108 /* Hash table for prototype */
109 #if ENABLE(JIT)
110 #define THUNK_GENERATOR(generator) , generator
111 #else
112 #define THUNK_GENERATOR(generator)
113 #endif
114 #if ENABLE(DFG_JIT)
115 #define INTRINSIC(intrinsic) , intrinsic
116 #else
117 #define INTRINSIC(intrinsic)
118 #endif
119
120 static const HashTableValue JSSVGFESpotLightElementPrototypeTableValues[] =
121 {
122     { 0, 0, 0, 0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) }
123 };
124
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) };
128
129 JSObject* JSSVGFESpotLightElementPrototype::self(ExecState* exec, JSGlobalObject* globalObject)
130 {
131     return getDOMPrototype<JSSVGFESpotLightElement>(exec, globalObject);
132 }
133
134 const ClassInfo JSSVGFESpotLightElement::s_info = { "SVGFESpotLightElement", &JSSVGElement::s_info, &JSSVGFESpotLightElementTable, 0 , CREATE_METHOD_TABLE(JSSVGFESpotLightElement) };
135
136 JSSVGFESpotLightElement::JSSVGFESpotLightElement(Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<SVGFESpotLightElement> impl)
137     : JSSVGElement(structure, globalObject, impl)
138 {
139 }
140
141 void JSSVGFESpotLightElement::finishCreation(JSGlobalData& globalData)
142 {
143     Base::finishCreation(globalData);
144     ASSERT(inherits(&s_info));
145 }
146
147 JSObject* JSSVGFESpotLightElement::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
148 {
149     return JSSVGFESpotLightElementPrototype::create(exec->globalData(), globalObject, JSSVGFESpotLightElementPrototype::createStructure(exec->globalData(), globalObject, JSSVGElementPrototype::self(exec, globalObject)));
150 }
151
152 bool JSSVGFESpotLightElement::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
153 {
154     JSSVGFESpotLightElement* thisObject = jsCast<JSSVGFESpotLightElement*>(cell);
155     ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
156     return getStaticValueSlot<JSSVGFESpotLightElement, Base>(exec, &JSSVGFESpotLightElementTable, thisObject, propertyName, slot);
157 }
158
159 bool JSSVGFESpotLightElement::getOwnPropertyDescriptor(JSObject* object, ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
160 {
161     JSSVGFESpotLightElement* thisObject = jsCast<JSSVGFESpotLightElement*>(object);
162     ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
163     return getStaticValueDescriptor<JSSVGFESpotLightElement, Base>(exec, &JSSVGFESpotLightElementTable, thisObject, propertyName, descriptor);
164 }
165
166 JSValue jsSVGFESpotLightElementX(ExecState* exec, JSValue slotBase, const Identifier&)
167 {
168     JSSVGFESpotLightElement* castedThis = static_cast<JSSVGFESpotLightElement*>(asObject(slotBase));
169     UNUSED_PARAM(exec);
170     SVGFESpotLightElement* imp = static_cast<SVGFESpotLightElement*>(castedThis->impl());
171     RefPtr<SVGAnimatedNumber> obj = imp->xAnimated();
172     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get());
173     return result;
174 }
175
176
177 JSValue jsSVGFESpotLightElementY(ExecState* exec, JSValue slotBase, const Identifier&)
178 {
179     JSSVGFESpotLightElement* castedThis = static_cast<JSSVGFESpotLightElement*>(asObject(slotBase));
180     UNUSED_PARAM(exec);
181     SVGFESpotLightElement* imp = static_cast<SVGFESpotLightElement*>(castedThis->impl());
182     RefPtr<SVGAnimatedNumber> obj = imp->yAnimated();
183     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get());
184     return result;
185 }
186
187
188 JSValue jsSVGFESpotLightElementZ(ExecState* exec, JSValue slotBase, const Identifier&)
189 {
190     JSSVGFESpotLightElement* castedThis = static_cast<JSSVGFESpotLightElement*>(asObject(slotBase));
191     UNUSED_PARAM(exec);
192     SVGFESpotLightElement* imp = static_cast<SVGFESpotLightElement*>(castedThis->impl());
193     RefPtr<SVGAnimatedNumber> obj = imp->zAnimated();
194     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get());
195     return result;
196 }
197
198
199 JSValue jsSVGFESpotLightElementPointsAtX(ExecState* exec, JSValue slotBase, const Identifier&)
200 {
201     JSSVGFESpotLightElement* castedThis = static_cast<JSSVGFESpotLightElement*>(asObject(slotBase));
202     UNUSED_PARAM(exec);
203     SVGFESpotLightElement* imp = static_cast<SVGFESpotLightElement*>(castedThis->impl());
204     RefPtr<SVGAnimatedNumber> obj = imp->pointsAtXAnimated();
205     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get());
206     return result;
207 }
208
209
210 JSValue jsSVGFESpotLightElementPointsAtY(ExecState* exec, JSValue slotBase, const Identifier&)
211 {
212     JSSVGFESpotLightElement* castedThis = static_cast<JSSVGFESpotLightElement*>(asObject(slotBase));
213     UNUSED_PARAM(exec);
214     SVGFESpotLightElement* imp = static_cast<SVGFESpotLightElement*>(castedThis->impl());
215     RefPtr<SVGAnimatedNumber> obj = imp->pointsAtYAnimated();
216     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get());
217     return result;
218 }
219
220
221 JSValue jsSVGFESpotLightElementPointsAtZ(ExecState* exec, JSValue slotBase, const Identifier&)
222 {
223     JSSVGFESpotLightElement* castedThis = static_cast<JSSVGFESpotLightElement*>(asObject(slotBase));
224     UNUSED_PARAM(exec);
225     SVGFESpotLightElement* imp = static_cast<SVGFESpotLightElement*>(castedThis->impl());
226     RefPtr<SVGAnimatedNumber> obj = imp->pointsAtZAnimated();
227     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get());
228     return result;
229 }
230
231
232 JSValue jsSVGFESpotLightElementSpecularExponent(ExecState* exec, JSValue slotBase, const Identifier&)
233 {
234     JSSVGFESpotLightElement* castedThis = static_cast<JSSVGFESpotLightElement*>(asObject(slotBase));
235     UNUSED_PARAM(exec);
236     SVGFESpotLightElement* imp = static_cast<SVGFESpotLightElement*>(castedThis->impl());
237     RefPtr<SVGAnimatedNumber> obj = imp->specularExponentAnimated();
238     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get());
239     return result;
240 }
241
242
243 JSValue jsSVGFESpotLightElementLimitingConeAngle(ExecState* exec, JSValue slotBase, const Identifier&)
244 {
245     JSSVGFESpotLightElement* castedThis = static_cast<JSSVGFESpotLightElement*>(asObject(slotBase));
246     UNUSED_PARAM(exec);
247     SVGFESpotLightElement* imp = static_cast<SVGFESpotLightElement*>(castedThis->impl());
248     RefPtr<SVGAnimatedNumber> obj = imp->limitingConeAngleAnimated();
249     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get());
250     return result;
251 }
252
253
254 JSValue jsSVGFESpotLightElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
255 {
256     JSSVGFESpotLightElement* domObject = static_cast<JSSVGFESpotLightElement*>(asObject(slotBase));
257     return JSSVGFESpotLightElement::getConstructor(exec, domObject->globalObject());
258 }
259
260 JSValue JSSVGFESpotLightElement::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
261 {
262     return getDOMConstructor<JSSVGFESpotLightElementConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));
263 }
264
265
266 }
267
268 #endif // ENABLE(FILTERS) && ENABLE(SVG)