tizen beta release
[framework/web/webkit-efl.git] / DerivedSources / WebCore / JSSVGFEColorMatrixElement.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 "JSSVGFEColorMatrixElement.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 "JSSVGAnimatedEnumeration.h"
35 #include "JSSVGAnimatedLength.h"
36 #include "JSSVGAnimatedNumberList.h"
37 #include "JSSVGAnimatedString.h"
38 #include "SVGFEColorMatrixElement.h"
39 #include <runtime/Error.h>
40 #include <wtf/GetPtr.h>
41
42 using namespace JSC;
43
44 namespace WebCore {
45
46 ASSERT_CLASS_FITS_IN_CELL(JSSVGFEColorMatrixElement);
47
48 /* Hash table */
49 #if ENABLE(JIT)
50 #define THUNK_GENERATOR(generator) , generator
51 #else
52 #define THUNK_GENERATOR(generator)
53 #endif
54 #if ENABLE(DFG_JIT)
55 #define INTRINSIC(intrinsic) , intrinsic
56 #else
57 #define INTRINSIC(intrinsic)
58 #endif
59
60 static const HashTableValue JSSVGFEColorMatrixElementTableValues[] =
61 {
62     { "in1", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEColorMatrixElementIn1), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
63     { "type", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEColorMatrixElementType), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
64     { "values", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEColorMatrixElementValues), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
65     { "x", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEColorMatrixElementX), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
66     { "y", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEColorMatrixElementY), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
67     { "width", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEColorMatrixElementWidth), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
68     { "height", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEColorMatrixElementHeight), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
69     { "result", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEColorMatrixElementResult), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
70     { "className", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEColorMatrixElementClassName), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
71     { "style", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEColorMatrixElementStyle), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
72     { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEColorMatrixElementConstructor), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
73     { 0, 0, 0, 0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) }
74 };
75
76 #undef THUNK_GENERATOR
77 static const HashTable JSSVGFEColorMatrixElementTable = { 34, 31, JSSVGFEColorMatrixElementTableValues, 0 };
78 /* Hash table for constructor */
79 #if ENABLE(JIT)
80 #define THUNK_GENERATOR(generator) , generator
81 #else
82 #define THUNK_GENERATOR(generator)
83 #endif
84 #if ENABLE(DFG_JIT)
85 #define INTRINSIC(intrinsic) , intrinsic
86 #else
87 #define INTRINSIC(intrinsic)
88 #endif
89
90 static const HashTableValue JSSVGFEColorMatrixElementConstructorTableValues[] =
91 {
92     { "SVG_FECOLORMATRIX_TYPE_UNKNOWN", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEColorMatrixElementSVG_FECOLORMATRIX_TYPE_UNKNOWN), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
93     { "SVG_FECOLORMATRIX_TYPE_MATRIX", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEColorMatrixElementSVG_FECOLORMATRIX_TYPE_MATRIX), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
94     { "SVG_FECOLORMATRIX_TYPE_SATURATE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEColorMatrixElementSVG_FECOLORMATRIX_TYPE_SATURATE), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
95     { "SVG_FECOLORMATRIX_TYPE_HUEROTATE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEColorMatrixElementSVG_FECOLORMATRIX_TYPE_HUEROTATE), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
96     { "SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEColorMatrixElementSVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
97     { 0, 0, 0, 0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) }
98 };
99
100 #undef THUNK_GENERATOR
101 static const HashTable JSSVGFEColorMatrixElementConstructorTable = { 17, 15, JSSVGFEColorMatrixElementConstructorTableValues, 0 };
102 const ClassInfo JSSVGFEColorMatrixElementConstructor::s_info = { "SVGFEColorMatrixElementConstructor", &DOMConstructorObject::s_info, &JSSVGFEColorMatrixElementConstructorTable, 0, CREATE_METHOD_TABLE(JSSVGFEColorMatrixElementConstructor) };
103
104 JSSVGFEColorMatrixElementConstructor::JSSVGFEColorMatrixElementConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
105     : DOMConstructorObject(structure, globalObject)
106 {
107 }
108
109 void JSSVGFEColorMatrixElementConstructor::finishCreation(ExecState* exec, JSDOMGlobalObject* globalObject)
110 {
111     Base::finishCreation(exec->globalData());
112     ASSERT(inherits(&s_info));
113     putDirect(exec->globalData(), exec->propertyNames().prototype, JSSVGFEColorMatrixElementPrototype::self(exec, globalObject), DontDelete | ReadOnly);
114 }
115
116 bool JSSVGFEColorMatrixElementConstructor::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
117 {
118     return getStaticValueSlot<JSSVGFEColorMatrixElementConstructor, JSDOMWrapper>(exec, &JSSVGFEColorMatrixElementConstructorTable, static_cast<JSSVGFEColorMatrixElementConstructor*>(cell), propertyName, slot);
119 }
120
121 bool JSSVGFEColorMatrixElementConstructor::getOwnPropertyDescriptor(JSObject* object, ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
122 {
123     return getStaticValueDescriptor<JSSVGFEColorMatrixElementConstructor, JSDOMWrapper>(exec, &JSSVGFEColorMatrixElementConstructorTable, static_cast<JSSVGFEColorMatrixElementConstructor*>(object), propertyName, descriptor);
124 }
125
126 /* Hash table for prototype */
127 #if ENABLE(JIT)
128 #define THUNK_GENERATOR(generator) , generator
129 #else
130 #define THUNK_GENERATOR(generator)
131 #endif
132 #if ENABLE(DFG_JIT)
133 #define INTRINSIC(intrinsic) , intrinsic
134 #else
135 #define INTRINSIC(intrinsic)
136 #endif
137
138 static const HashTableValue JSSVGFEColorMatrixElementPrototypeTableValues[] =
139 {
140     { "SVG_FECOLORMATRIX_TYPE_UNKNOWN", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEColorMatrixElementSVG_FECOLORMATRIX_TYPE_UNKNOWN), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
141     { "SVG_FECOLORMATRIX_TYPE_MATRIX", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEColorMatrixElementSVG_FECOLORMATRIX_TYPE_MATRIX), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
142     { "SVG_FECOLORMATRIX_TYPE_SATURATE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEColorMatrixElementSVG_FECOLORMATRIX_TYPE_SATURATE), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
143     { "SVG_FECOLORMATRIX_TYPE_HUEROTATE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEColorMatrixElementSVG_FECOLORMATRIX_TYPE_HUEROTATE), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
144     { "SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEColorMatrixElementSVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
145     { "getPresentationAttribute", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsSVGFEColorMatrixElementPrototypeFunctionGetPresentationAttribute), (intptr_t)1 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
146     { 0, 0, 0, 0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) }
147 };
148
149 #undef THUNK_GENERATOR
150 static const HashTable JSSVGFEColorMatrixElementPrototypeTable = { 17, 15, JSSVGFEColorMatrixElementPrototypeTableValues, 0 };
151 const ClassInfo JSSVGFEColorMatrixElementPrototype::s_info = { "SVGFEColorMatrixElementPrototype", &JSC::JSNonFinalObject::s_info, &JSSVGFEColorMatrixElementPrototypeTable, 0, CREATE_METHOD_TABLE(JSSVGFEColorMatrixElementPrototype) };
152
153 JSObject* JSSVGFEColorMatrixElementPrototype::self(ExecState* exec, JSGlobalObject* globalObject)
154 {
155     return getDOMPrototype<JSSVGFEColorMatrixElement>(exec, globalObject);
156 }
157
158 bool JSSVGFEColorMatrixElementPrototype::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
159 {
160     JSSVGFEColorMatrixElementPrototype* thisObject = jsCast<JSSVGFEColorMatrixElementPrototype*>(cell);
161     return getStaticPropertySlot<JSSVGFEColorMatrixElementPrototype, JSObject>(exec, &JSSVGFEColorMatrixElementPrototypeTable, thisObject, propertyName, slot);
162 }
163
164 bool JSSVGFEColorMatrixElementPrototype::getOwnPropertyDescriptor(JSObject* object, ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
165 {
166     JSSVGFEColorMatrixElementPrototype* thisObject = jsCast<JSSVGFEColorMatrixElementPrototype*>(object);
167     return getStaticPropertyDescriptor<JSSVGFEColorMatrixElementPrototype, JSObject>(exec, &JSSVGFEColorMatrixElementPrototypeTable, thisObject, propertyName, descriptor);
168 }
169
170 const ClassInfo JSSVGFEColorMatrixElement::s_info = { "SVGFEColorMatrixElement", &JSSVGElement::s_info, &JSSVGFEColorMatrixElementTable, 0 , CREATE_METHOD_TABLE(JSSVGFEColorMatrixElement) };
171
172 JSSVGFEColorMatrixElement::JSSVGFEColorMatrixElement(Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<SVGFEColorMatrixElement> impl)
173     : JSSVGElement(structure, globalObject, impl)
174 {
175 }
176
177 void JSSVGFEColorMatrixElement::finishCreation(JSGlobalData& globalData)
178 {
179     Base::finishCreation(globalData);
180     ASSERT(inherits(&s_info));
181 }
182
183 JSObject* JSSVGFEColorMatrixElement::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
184 {
185     return JSSVGFEColorMatrixElementPrototype::create(exec->globalData(), globalObject, JSSVGFEColorMatrixElementPrototype::createStructure(exec->globalData(), globalObject, JSSVGElementPrototype::self(exec, globalObject)));
186 }
187
188 bool JSSVGFEColorMatrixElement::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
189 {
190     JSSVGFEColorMatrixElement* thisObject = jsCast<JSSVGFEColorMatrixElement*>(cell);
191     ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
192     return getStaticValueSlot<JSSVGFEColorMatrixElement, Base>(exec, &JSSVGFEColorMatrixElementTable, thisObject, propertyName, slot);
193 }
194
195 bool JSSVGFEColorMatrixElement::getOwnPropertyDescriptor(JSObject* object, ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
196 {
197     JSSVGFEColorMatrixElement* thisObject = jsCast<JSSVGFEColorMatrixElement*>(object);
198     ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
199     return getStaticValueDescriptor<JSSVGFEColorMatrixElement, Base>(exec, &JSSVGFEColorMatrixElementTable, thisObject, propertyName, descriptor);
200 }
201
202 JSValue jsSVGFEColorMatrixElementIn1(ExecState* exec, JSValue slotBase, const Identifier&)
203 {
204     JSSVGFEColorMatrixElement* castedThis = static_cast<JSSVGFEColorMatrixElement*>(asObject(slotBase));
205     UNUSED_PARAM(exec);
206     SVGFEColorMatrixElement* imp = static_cast<SVGFEColorMatrixElement*>(castedThis->impl());
207     RefPtr<SVGAnimatedString> obj = imp->in1Animated();
208     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get());
209     return result;
210 }
211
212
213 JSValue jsSVGFEColorMatrixElementType(ExecState* exec, JSValue slotBase, const Identifier&)
214 {
215     JSSVGFEColorMatrixElement* castedThis = static_cast<JSSVGFEColorMatrixElement*>(asObject(slotBase));
216     UNUSED_PARAM(exec);
217     SVGFEColorMatrixElement* imp = static_cast<SVGFEColorMatrixElement*>(castedThis->impl());
218     RefPtr<SVGAnimatedEnumeration> obj = imp->typeAnimated();
219     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get());
220     return result;
221 }
222
223
224 JSValue jsSVGFEColorMatrixElementValues(ExecState* exec, JSValue slotBase, const Identifier&)
225 {
226     JSSVGFEColorMatrixElement* castedThis = static_cast<JSSVGFEColorMatrixElement*>(asObject(slotBase));
227     UNUSED_PARAM(exec);
228     SVGFEColorMatrixElement* imp = static_cast<SVGFEColorMatrixElement*>(castedThis->impl());
229     RefPtr<SVGAnimatedNumberList> obj = imp->valuesAnimated();
230     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get());
231     return result;
232 }
233
234
235 JSValue jsSVGFEColorMatrixElementX(ExecState* exec, JSValue slotBase, const Identifier&)
236 {
237     JSSVGFEColorMatrixElement* castedThis = static_cast<JSSVGFEColorMatrixElement*>(asObject(slotBase));
238     UNUSED_PARAM(exec);
239     SVGFEColorMatrixElement* imp = static_cast<SVGFEColorMatrixElement*>(castedThis->impl());
240     RefPtr<SVGAnimatedLength> obj = imp->xAnimated();
241     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get());
242     return result;
243 }
244
245
246 JSValue jsSVGFEColorMatrixElementY(ExecState* exec, JSValue slotBase, const Identifier&)
247 {
248     JSSVGFEColorMatrixElement* castedThis = static_cast<JSSVGFEColorMatrixElement*>(asObject(slotBase));
249     UNUSED_PARAM(exec);
250     SVGFEColorMatrixElement* imp = static_cast<SVGFEColorMatrixElement*>(castedThis->impl());
251     RefPtr<SVGAnimatedLength> obj = imp->yAnimated();
252     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get());
253     return result;
254 }
255
256
257 JSValue jsSVGFEColorMatrixElementWidth(ExecState* exec, JSValue slotBase, const Identifier&)
258 {
259     JSSVGFEColorMatrixElement* castedThis = static_cast<JSSVGFEColorMatrixElement*>(asObject(slotBase));
260     UNUSED_PARAM(exec);
261     SVGFEColorMatrixElement* imp = static_cast<SVGFEColorMatrixElement*>(castedThis->impl());
262     RefPtr<SVGAnimatedLength> obj = imp->widthAnimated();
263     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get());
264     return result;
265 }
266
267
268 JSValue jsSVGFEColorMatrixElementHeight(ExecState* exec, JSValue slotBase, const Identifier&)
269 {
270     JSSVGFEColorMatrixElement* castedThis = static_cast<JSSVGFEColorMatrixElement*>(asObject(slotBase));
271     UNUSED_PARAM(exec);
272     SVGFEColorMatrixElement* imp = static_cast<SVGFEColorMatrixElement*>(castedThis->impl());
273     RefPtr<SVGAnimatedLength> obj = imp->heightAnimated();
274     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get());
275     return result;
276 }
277
278
279 JSValue jsSVGFEColorMatrixElementResult(ExecState* exec, JSValue slotBase, const Identifier&)
280 {
281     JSSVGFEColorMatrixElement* castedThis = static_cast<JSSVGFEColorMatrixElement*>(asObject(slotBase));
282     UNUSED_PARAM(exec);
283     SVGFEColorMatrixElement* imp = static_cast<SVGFEColorMatrixElement*>(castedThis->impl());
284     RefPtr<SVGAnimatedString> obj = imp->resultAnimated();
285     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get());
286     return result;
287 }
288
289
290 JSValue jsSVGFEColorMatrixElementClassName(ExecState* exec, JSValue slotBase, const Identifier&)
291 {
292     JSSVGFEColorMatrixElement* castedThis = static_cast<JSSVGFEColorMatrixElement*>(asObject(slotBase));
293     UNUSED_PARAM(exec);
294     SVGFEColorMatrixElement* imp = static_cast<SVGFEColorMatrixElement*>(castedThis->impl());
295     RefPtr<SVGAnimatedString> obj = imp->classNameAnimated();
296     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get());
297     return result;
298 }
299
300
301 JSValue jsSVGFEColorMatrixElementStyle(ExecState* exec, JSValue slotBase, const Identifier&)
302 {
303     JSSVGFEColorMatrixElement* castedThis = static_cast<JSSVGFEColorMatrixElement*>(asObject(slotBase));
304     UNUSED_PARAM(exec);
305     SVGFEColorMatrixElement* imp = static_cast<SVGFEColorMatrixElement*>(castedThis->impl());
306     JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->style()));
307     return result;
308 }
309
310
311 JSValue jsSVGFEColorMatrixElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
312 {
313     JSSVGFEColorMatrixElement* domObject = static_cast<JSSVGFEColorMatrixElement*>(asObject(slotBase));
314     return JSSVGFEColorMatrixElement::getConstructor(exec, domObject->globalObject());
315 }
316
317 JSValue JSSVGFEColorMatrixElement::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
318 {
319     return getDOMConstructor<JSSVGFEColorMatrixElementConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));
320 }
321
322 EncodedJSValue JSC_HOST_CALL jsSVGFEColorMatrixElementPrototypeFunctionGetPresentationAttribute(ExecState* exec)
323 {
324     JSValue thisValue = exec->hostThisValue();
325     if (!thisValue.inherits(&JSSVGFEColorMatrixElement::s_info))
326         return throwVMTypeError(exec);
327     JSSVGFEColorMatrixElement* castedThis = static_cast<JSSVGFEColorMatrixElement*>(asObject(thisValue));
328     ASSERT_GC_OBJECT_INHERITS(castedThis, &JSSVGFEColorMatrixElement::s_info);
329     SVGFEColorMatrixElement* imp = static_cast<SVGFEColorMatrixElement*>(castedThis->impl());
330     const String& name(ustringToString(MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).isEmpty() ? UString() : MAYBE_MISSING_PARAMETER(exec, 0, MissingIsUndefined).toString(exec)));
331     if (exec->hadException())
332         return JSValue::encode(jsUndefined());
333
334     JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->getPresentationAttribute(name)));
335     return JSValue::encode(result);
336 }
337
338 // Constant getters
339
340 JSValue jsSVGFEColorMatrixElementSVG_FECOLORMATRIX_TYPE_UNKNOWN(ExecState* exec, JSValue, const Identifier&)
341 {
342     UNUSED_PARAM(exec);
343     return jsNumber(static_cast<int>(0));
344 }
345
346 JSValue jsSVGFEColorMatrixElementSVG_FECOLORMATRIX_TYPE_MATRIX(ExecState* exec, JSValue, const Identifier&)
347 {
348     UNUSED_PARAM(exec);
349     return jsNumber(static_cast<int>(1));
350 }
351
352 JSValue jsSVGFEColorMatrixElementSVG_FECOLORMATRIX_TYPE_SATURATE(ExecState* exec, JSValue, const Identifier&)
353 {
354     UNUSED_PARAM(exec);
355     return jsNumber(static_cast<int>(2));
356 }
357
358 JSValue jsSVGFEColorMatrixElementSVG_FECOLORMATRIX_TYPE_HUEROTATE(ExecState* exec, JSValue, const Identifier&)
359 {
360     UNUSED_PARAM(exec);
361     return jsNumber(static_cast<int>(3));
362 }
363
364 JSValue jsSVGFEColorMatrixElementSVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA(ExecState* exec, JSValue, const Identifier&)
365 {
366     UNUSED_PARAM(exec);
367     return jsNumber(static_cast<int>(4));
368 }
369
370
371 }
372
373 #endif // ENABLE(FILTERS) && ENABLE(SVG)