tizen beta release
[framework/web/webkit-efl.git] / DerivedSources / WebCore / JSSVGFEComponentTransferElement.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 "JSSVGFEComponentTransferElement.h"
26
27 #include "CSSMutableStyleDeclaration.h"
28 #include "CSSStyleDeclaration.h"
29 #include "CSSValue.h"
30 #include "ExceptionCode.h"
31 #include "JSCSSStyleDeclaration.h"
32 #include "JSCSSValue.h"
33 #include "JSDOMBinding.h"
34 #include "JSSVGAnimatedLength.h"
35 #include "JSSVGAnimatedString.h"
36 #include "SVGFEComponentTransferElement.h"
37 #include <runtime/Error.h>
38 #include <wtf/GetPtr.h>
39
40 using namespace JSC;
41
42 namespace WebCore {
43
44 ASSERT_CLASS_FITS_IN_CELL(JSSVGFEComponentTransferElement);
45
46 /* Hash table */
47 #if ENABLE(JIT)
48 #define THUNK_GENERATOR(generator) , generator
49 #else
50 #define THUNK_GENERATOR(generator)
51 #endif
52 #if ENABLE(DFG_JIT)
53 #define INTRINSIC(intrinsic) , intrinsic
54 #else
55 #define INTRINSIC(intrinsic)
56 #endif
57
58 static const HashTableValue JSSVGFEComponentTransferElementTableValues[] =
59 {
60     { "in1", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEComponentTransferElementIn1), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
61     { "x", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEComponentTransferElementX), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
62     { "y", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEComponentTransferElementY), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
63     { "width", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEComponentTransferElementWidth), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
64     { "height", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEComponentTransferElementHeight), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
65     { "result", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEComponentTransferElementResult), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
66     { "className", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEComponentTransferElementClassName), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
67     { "style", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEComponentTransferElementStyle), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
68     { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEComponentTransferElementConstructor), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
69     { 0, 0, 0, 0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) }
70 };
71
72 #undef THUNK_GENERATOR
73 static const HashTable JSSVGFEComponentTransferElementTable = { 34, 31, JSSVGFEComponentTransferElementTableValues, 0 };
74 /* Hash table for constructor */
75 #if ENABLE(JIT)
76 #define THUNK_GENERATOR(generator) , generator
77 #else
78 #define THUNK_GENERATOR(generator)
79 #endif
80 #if ENABLE(DFG_JIT)
81 #define INTRINSIC(intrinsic) , intrinsic
82 #else
83 #define INTRINSIC(intrinsic)
84 #endif
85
86 static const HashTableValue JSSVGFEComponentTransferElementConstructorTableValues[] =
87 {
88     { 0, 0, 0, 0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) }
89 };
90
91 #undef THUNK_GENERATOR
92 static const HashTable JSSVGFEComponentTransferElementConstructorTable = { 1, 0, JSSVGFEComponentTransferElementConstructorTableValues, 0 };
93 const ClassInfo JSSVGFEComponentTransferElementConstructor::s_info = { "SVGFEComponentTransferElementConstructor", &DOMConstructorObject::s_info, &JSSVGFEComponentTransferElementConstructorTable, 0, CREATE_METHOD_TABLE(JSSVGFEComponentTransferElementConstructor) };
94
95 JSSVGFEComponentTransferElementConstructor::JSSVGFEComponentTransferElementConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
96     : DOMConstructorObject(structure, globalObject)
97 {
98 }
99
100 void JSSVGFEComponentTransferElementConstructor::finishCreation(ExecState* exec, JSDOMGlobalObject* globalObject)
101 {
102     Base::finishCreation(exec->globalData());
103     ASSERT(inherits(&s_info));
104     putDirect(exec->globalData(), exec->propertyNames().prototype, JSSVGFEComponentTransferElementPrototype::self(exec, globalObject), DontDelete | ReadOnly);
105 }
106
107 bool JSSVGFEComponentTransferElementConstructor::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
108 {
109     return getStaticValueSlot<JSSVGFEComponentTransferElementConstructor, JSDOMWrapper>(exec, &JSSVGFEComponentTransferElementConstructorTable, static_cast<JSSVGFEComponentTransferElementConstructor*>(cell), propertyName, slot);
110 }
111
112 bool JSSVGFEComponentTransferElementConstructor::getOwnPropertyDescriptor(JSObject* object, ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
113 {
114     return getStaticValueDescriptor<JSSVGFEComponentTransferElementConstructor, JSDOMWrapper>(exec, &JSSVGFEComponentTransferElementConstructorTable, static_cast<JSSVGFEComponentTransferElementConstructor*>(object), propertyName, descriptor);
115 }
116
117 /* Hash table for prototype */
118 #if ENABLE(JIT)
119 #define THUNK_GENERATOR(generator) , generator
120 #else
121 #define THUNK_GENERATOR(generator)
122 #endif
123 #if ENABLE(DFG_JIT)
124 #define INTRINSIC(intrinsic) , intrinsic
125 #else
126 #define INTRINSIC(intrinsic)
127 #endif
128
129 static const HashTableValue JSSVGFEComponentTransferElementPrototypeTableValues[] =
130 {
131     { "getPresentationAttribute", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsSVGFEComponentTransferElementPrototypeFunctionGetPresentationAttribute), (intptr_t)1 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
132     { 0, 0, 0, 0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) }
133 };
134
135 #undef THUNK_GENERATOR
136 static const HashTable JSSVGFEComponentTransferElementPrototypeTable = { 2, 1, JSSVGFEComponentTransferElementPrototypeTableValues, 0 };
137 const ClassInfo JSSVGFEComponentTransferElementPrototype::s_info = { "SVGFEComponentTransferElementPrototype", &JSC::JSNonFinalObject::s_info, &JSSVGFEComponentTransferElementPrototypeTable, 0, CREATE_METHOD_TABLE(JSSVGFEComponentTransferElementPrototype) };
138
139 JSObject* JSSVGFEComponentTransferElementPrototype::self(ExecState* exec, JSGlobalObject* globalObject)
140 {
141     return getDOMPrototype<JSSVGFEComponentTransferElement>(exec, globalObject);
142 }
143
144 bool JSSVGFEComponentTransferElementPrototype::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
145 {
146     JSSVGFEComponentTransferElementPrototype* thisObject = jsCast<JSSVGFEComponentTransferElementPrototype*>(cell);
147     return getStaticFunctionSlot<JSObject>(exec, &JSSVGFEComponentTransferElementPrototypeTable, thisObject, propertyName, slot);
148 }
149
150 bool JSSVGFEComponentTransferElementPrototype::getOwnPropertyDescriptor(JSObject* object, ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
151 {
152     JSSVGFEComponentTransferElementPrototype* thisObject = jsCast<JSSVGFEComponentTransferElementPrototype*>(object);
153     return getStaticFunctionDescriptor<JSObject>(exec, &JSSVGFEComponentTransferElementPrototypeTable, thisObject, propertyName, descriptor);
154 }
155
156 const ClassInfo JSSVGFEComponentTransferElement::s_info = { "SVGFEComponentTransferElement", &JSSVGElement::s_info, &JSSVGFEComponentTransferElementTable, 0 , CREATE_METHOD_TABLE(JSSVGFEComponentTransferElement) };
157
158 JSSVGFEComponentTransferElement::JSSVGFEComponentTransferElement(Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<SVGFEComponentTransferElement> impl)
159     : JSSVGElement(structure, globalObject, impl)
160 {
161 }
162
163 void JSSVGFEComponentTransferElement::finishCreation(JSGlobalData& globalData)
164 {
165     Base::finishCreation(globalData);
166     ASSERT(inherits(&s_info));
167 }
168
169 JSObject* JSSVGFEComponentTransferElement::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
170 {
171     return JSSVGFEComponentTransferElementPrototype::create(exec->globalData(), globalObject, JSSVGFEComponentTransferElementPrototype::createStructure(exec->globalData(), globalObject, JSSVGElementPrototype::self(exec, globalObject)));
172 }
173
174 bool JSSVGFEComponentTransferElement::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
175 {
176     JSSVGFEComponentTransferElement* thisObject = jsCast<JSSVGFEComponentTransferElement*>(cell);
177     ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
178     return getStaticValueSlot<JSSVGFEComponentTransferElement, Base>(exec, &JSSVGFEComponentTransferElementTable, thisObject, propertyName, slot);
179 }
180
181 bool JSSVGFEComponentTransferElement::getOwnPropertyDescriptor(JSObject* object, ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
182 {
183     JSSVGFEComponentTransferElement* thisObject = jsCast<JSSVGFEComponentTransferElement*>(object);
184     ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
185     return getStaticValueDescriptor<JSSVGFEComponentTransferElement, Base>(exec, &JSSVGFEComponentTransferElementTable, thisObject, propertyName, descriptor);
186 }
187
188 JSValue jsSVGFEComponentTransferElementIn1(ExecState* exec, JSValue slotBase, const Identifier&)
189 {
190     JSSVGFEComponentTransferElement* castedThis = static_cast<JSSVGFEComponentTransferElement*>(asObject(slotBase));
191     UNUSED_PARAM(exec);
192     SVGFEComponentTransferElement* imp = static_cast<SVGFEComponentTransferElement*>(castedThis->impl());
193     RefPtr<SVGAnimatedString> obj = imp->in1Animated();
194     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get());
195     return result;
196 }
197
198
199 JSValue jsSVGFEComponentTransferElementX(ExecState* exec, JSValue slotBase, const Identifier&)
200 {
201     JSSVGFEComponentTransferElement* castedThis = static_cast<JSSVGFEComponentTransferElement*>(asObject(slotBase));
202     UNUSED_PARAM(exec);
203     SVGFEComponentTransferElement* imp = static_cast<SVGFEComponentTransferElement*>(castedThis->impl());
204     RefPtr<SVGAnimatedLength> obj = imp->xAnimated();
205     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get());
206     return result;
207 }
208
209
210 JSValue jsSVGFEComponentTransferElementY(ExecState* exec, JSValue slotBase, const Identifier&)
211 {
212     JSSVGFEComponentTransferElement* castedThis = static_cast<JSSVGFEComponentTransferElement*>(asObject(slotBase));
213     UNUSED_PARAM(exec);
214     SVGFEComponentTransferElement* imp = static_cast<SVGFEComponentTransferElement*>(castedThis->impl());
215     RefPtr<SVGAnimatedLength> obj = imp->yAnimated();
216     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get());
217     return result;
218 }
219
220
221 JSValue jsSVGFEComponentTransferElementWidth(ExecState* exec, JSValue slotBase, const Identifier&)
222 {
223     JSSVGFEComponentTransferElement* castedThis = static_cast<JSSVGFEComponentTransferElement*>(asObject(slotBase));
224     UNUSED_PARAM(exec);
225     SVGFEComponentTransferElement* imp = static_cast<SVGFEComponentTransferElement*>(castedThis->impl());
226     RefPtr<SVGAnimatedLength> obj = imp->widthAnimated();
227     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get());
228     return result;
229 }
230
231
232 JSValue jsSVGFEComponentTransferElementHeight(ExecState* exec, JSValue slotBase, const Identifier&)
233 {
234     JSSVGFEComponentTransferElement* castedThis = static_cast<JSSVGFEComponentTransferElement*>(asObject(slotBase));
235     UNUSED_PARAM(exec);
236     SVGFEComponentTransferElement* imp = static_cast<SVGFEComponentTransferElement*>(castedThis->impl());
237     RefPtr<SVGAnimatedLength> obj = imp->heightAnimated();
238     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get());
239     return result;
240 }
241
242
243 JSValue jsSVGFEComponentTransferElementResult(ExecState* exec, JSValue slotBase, const Identifier&)
244 {
245     JSSVGFEComponentTransferElement* castedThis = static_cast<JSSVGFEComponentTransferElement*>(asObject(slotBase));
246     UNUSED_PARAM(exec);
247     SVGFEComponentTransferElement* imp = static_cast<SVGFEComponentTransferElement*>(castedThis->impl());
248     RefPtr<SVGAnimatedString> obj = imp->resultAnimated();
249     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get());
250     return result;
251 }
252
253
254 JSValue jsSVGFEComponentTransferElementClassName(ExecState* exec, JSValue slotBase, const Identifier&)
255 {
256     JSSVGFEComponentTransferElement* castedThis = static_cast<JSSVGFEComponentTransferElement*>(asObject(slotBase));
257     UNUSED_PARAM(exec);
258     SVGFEComponentTransferElement* imp = static_cast<SVGFEComponentTransferElement*>(castedThis->impl());
259     RefPtr<SVGAnimatedString> obj = imp->classNameAnimated();
260     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get());
261     return result;
262 }
263
264
265 JSValue jsSVGFEComponentTransferElementStyle(ExecState* exec, JSValue slotBase, const Identifier&)
266 {
267     JSSVGFEComponentTransferElement* castedThis = static_cast<JSSVGFEComponentTransferElement*>(asObject(slotBase));
268     UNUSED_PARAM(exec);
269     SVGFEComponentTransferElement* imp = static_cast<SVGFEComponentTransferElement*>(castedThis->impl());
270     JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->style()));
271     return result;
272 }
273
274
275 JSValue jsSVGFEComponentTransferElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
276 {
277     JSSVGFEComponentTransferElement* domObject = static_cast<JSSVGFEComponentTransferElement*>(asObject(slotBase));
278     return JSSVGFEComponentTransferElement::getConstructor(exec, domObject->globalObject());
279 }
280
281 JSValue JSSVGFEComponentTransferElement::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
282 {
283     return getDOMConstructor<JSSVGFEComponentTransferElementConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));
284 }
285
286 EncodedJSValue JSC_HOST_CALL jsSVGFEComponentTransferElementPrototypeFunctionGetPresentationAttribute(ExecState* exec)
287 {
288     JSValue thisValue = exec->hostThisValue();
289     if (!thisValue.inherits(&JSSVGFEComponentTransferElement::s_info))
290         return throwVMTypeError(exec);
291     JSSVGFEComponentTransferElement* castedThis = static_cast<JSSVGFEComponentTransferElement*>(asObject(thisValue));
292     ASSERT_GC_OBJECT_INHERITS(castedThis, &JSSVGFEComponentTransferElement::s_info);
293     SVGFEComponentTransferElement* imp = static_cast<SVGFEComponentTransferElement*>(castedThis->impl());
294     const String& name(ustringToString(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toString(exec)));
295     if (exec->hadException())
296         return JSValue::encode(jsUndefined());
297
298     JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->getPresentationAttribute(name)));
299     return JSValue::encode(result);
300 }
301
302
303 }
304
305 #endif // ENABLE(FILTERS) && ENABLE(SVG)