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 "JSSVGFEComponentTransferElement.h"
27 #include "CSSMutableStyleDeclaration.h"
28 #include "CSSStyleDeclaration.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>
44 ASSERT_CLASS_FITS_IN_CELL(JSSVGFEComponentTransferElement);
48 #define THUNK_GENERATOR(generator) , generator
50 #define THUNK_GENERATOR(generator)
53 #define INTRINSIC(intrinsic) , intrinsic
55 #define INTRINSIC(intrinsic)
58 static const HashTableValue JSSVGFEComponentTransferElementTableValues[] =
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) }
72 #undef THUNK_GENERATOR
73 static const HashTable JSSVGFEComponentTransferElementTable = { 34, 31, JSSVGFEComponentTransferElementTableValues, 0 };
74 /* Hash table for constructor */
76 #define THUNK_GENERATOR(generator) , generator
78 #define THUNK_GENERATOR(generator)
81 #define INTRINSIC(intrinsic) , intrinsic
83 #define INTRINSIC(intrinsic)
86 static const HashTableValue JSSVGFEComponentTransferElementConstructorTableValues[] =
88 { 0, 0, 0, 0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) }
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) };
95 JSSVGFEComponentTransferElementConstructor::JSSVGFEComponentTransferElementConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
96 : DOMConstructorObject(structure, globalObject)
100 void JSSVGFEComponentTransferElementConstructor::finishCreation(ExecState* exec, JSDOMGlobalObject* globalObject)
102 Base::finishCreation(exec->globalData());
103 ASSERT(inherits(&s_info));
104 putDirect(exec->globalData(), exec->propertyNames().prototype, JSSVGFEComponentTransferElementPrototype::self(exec, globalObject), DontDelete | ReadOnly);
107 bool JSSVGFEComponentTransferElementConstructor::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
109 return getStaticValueSlot<JSSVGFEComponentTransferElementConstructor, JSDOMWrapper>(exec, &JSSVGFEComponentTransferElementConstructorTable, static_cast<JSSVGFEComponentTransferElementConstructor*>(cell), propertyName, slot);
112 bool JSSVGFEComponentTransferElementConstructor::getOwnPropertyDescriptor(JSObject* object, ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
114 return getStaticValueDescriptor<JSSVGFEComponentTransferElementConstructor, JSDOMWrapper>(exec, &JSSVGFEComponentTransferElementConstructorTable, static_cast<JSSVGFEComponentTransferElementConstructor*>(object), propertyName, descriptor);
117 /* Hash table for prototype */
119 #define THUNK_GENERATOR(generator) , generator
121 #define THUNK_GENERATOR(generator)
124 #define INTRINSIC(intrinsic) , intrinsic
126 #define INTRINSIC(intrinsic)
129 static const HashTableValue JSSVGFEComponentTransferElementPrototypeTableValues[] =
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) }
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) };
139 JSObject* JSSVGFEComponentTransferElementPrototype::self(ExecState* exec, JSGlobalObject* globalObject)
141 return getDOMPrototype<JSSVGFEComponentTransferElement>(exec, globalObject);
144 bool JSSVGFEComponentTransferElementPrototype::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
146 JSSVGFEComponentTransferElementPrototype* thisObject = jsCast<JSSVGFEComponentTransferElementPrototype*>(cell);
147 return getStaticFunctionSlot<JSObject>(exec, &JSSVGFEComponentTransferElementPrototypeTable, thisObject, propertyName, slot);
150 bool JSSVGFEComponentTransferElementPrototype::getOwnPropertyDescriptor(JSObject* object, ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
152 JSSVGFEComponentTransferElementPrototype* thisObject = jsCast<JSSVGFEComponentTransferElementPrototype*>(object);
153 return getStaticFunctionDescriptor<JSObject>(exec, &JSSVGFEComponentTransferElementPrototypeTable, thisObject, propertyName, descriptor);
156 const ClassInfo JSSVGFEComponentTransferElement::s_info = { "SVGFEComponentTransferElement", &JSSVGElement::s_info, &JSSVGFEComponentTransferElementTable, 0 , CREATE_METHOD_TABLE(JSSVGFEComponentTransferElement) };
158 JSSVGFEComponentTransferElement::JSSVGFEComponentTransferElement(Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<SVGFEComponentTransferElement> impl)
159 : JSSVGElement(structure, globalObject, impl)
163 void JSSVGFEComponentTransferElement::finishCreation(JSGlobalData& globalData)
165 Base::finishCreation(globalData);
166 ASSERT(inherits(&s_info));
169 JSObject* JSSVGFEComponentTransferElement::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
171 return JSSVGFEComponentTransferElementPrototype::create(exec->globalData(), globalObject, JSSVGFEComponentTransferElementPrototype::createStructure(exec->globalData(), globalObject, JSSVGElementPrototype::self(exec, globalObject)));
174 bool JSSVGFEComponentTransferElement::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
176 JSSVGFEComponentTransferElement* thisObject = jsCast<JSSVGFEComponentTransferElement*>(cell);
177 ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
178 return getStaticValueSlot<JSSVGFEComponentTransferElement, Base>(exec, &JSSVGFEComponentTransferElementTable, thisObject, propertyName, slot);
181 bool JSSVGFEComponentTransferElement::getOwnPropertyDescriptor(JSObject* object, ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
183 JSSVGFEComponentTransferElement* thisObject = jsCast<JSSVGFEComponentTransferElement*>(object);
184 ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
185 return getStaticValueDescriptor<JSSVGFEComponentTransferElement, Base>(exec, &JSSVGFEComponentTransferElementTable, thisObject, propertyName, descriptor);
188 JSValue jsSVGFEComponentTransferElementIn1(ExecState* exec, JSValue slotBase, const Identifier&)
190 JSSVGFEComponentTransferElement* castedThis = static_cast<JSSVGFEComponentTransferElement*>(asObject(slotBase));
192 SVGFEComponentTransferElement* imp = static_cast<SVGFEComponentTransferElement*>(castedThis->impl());
193 RefPtr<SVGAnimatedString> obj = imp->in1Animated();
194 JSValue result = toJS(exec, castedThis->globalObject(), obj.get());
199 JSValue jsSVGFEComponentTransferElementX(ExecState* exec, JSValue slotBase, const Identifier&)
201 JSSVGFEComponentTransferElement* castedThis = static_cast<JSSVGFEComponentTransferElement*>(asObject(slotBase));
203 SVGFEComponentTransferElement* imp = static_cast<SVGFEComponentTransferElement*>(castedThis->impl());
204 RefPtr<SVGAnimatedLength> obj = imp->xAnimated();
205 JSValue result = toJS(exec, castedThis->globalObject(), obj.get());
210 JSValue jsSVGFEComponentTransferElementY(ExecState* exec, JSValue slotBase, const Identifier&)
212 JSSVGFEComponentTransferElement* castedThis = static_cast<JSSVGFEComponentTransferElement*>(asObject(slotBase));
214 SVGFEComponentTransferElement* imp = static_cast<SVGFEComponentTransferElement*>(castedThis->impl());
215 RefPtr<SVGAnimatedLength> obj = imp->yAnimated();
216 JSValue result = toJS(exec, castedThis->globalObject(), obj.get());
221 JSValue jsSVGFEComponentTransferElementWidth(ExecState* exec, JSValue slotBase, const Identifier&)
223 JSSVGFEComponentTransferElement* castedThis = static_cast<JSSVGFEComponentTransferElement*>(asObject(slotBase));
225 SVGFEComponentTransferElement* imp = static_cast<SVGFEComponentTransferElement*>(castedThis->impl());
226 RefPtr<SVGAnimatedLength> obj = imp->widthAnimated();
227 JSValue result = toJS(exec, castedThis->globalObject(), obj.get());
232 JSValue jsSVGFEComponentTransferElementHeight(ExecState* exec, JSValue slotBase, const Identifier&)
234 JSSVGFEComponentTransferElement* castedThis = static_cast<JSSVGFEComponentTransferElement*>(asObject(slotBase));
236 SVGFEComponentTransferElement* imp = static_cast<SVGFEComponentTransferElement*>(castedThis->impl());
237 RefPtr<SVGAnimatedLength> obj = imp->heightAnimated();
238 JSValue result = toJS(exec, castedThis->globalObject(), obj.get());
243 JSValue jsSVGFEComponentTransferElementResult(ExecState* exec, JSValue slotBase, const Identifier&)
245 JSSVGFEComponentTransferElement* castedThis = static_cast<JSSVGFEComponentTransferElement*>(asObject(slotBase));
247 SVGFEComponentTransferElement* imp = static_cast<SVGFEComponentTransferElement*>(castedThis->impl());
248 RefPtr<SVGAnimatedString> obj = imp->resultAnimated();
249 JSValue result = toJS(exec, castedThis->globalObject(), obj.get());
254 JSValue jsSVGFEComponentTransferElementClassName(ExecState* exec, JSValue slotBase, const Identifier&)
256 JSSVGFEComponentTransferElement* castedThis = static_cast<JSSVGFEComponentTransferElement*>(asObject(slotBase));
258 SVGFEComponentTransferElement* imp = static_cast<SVGFEComponentTransferElement*>(castedThis->impl());
259 RefPtr<SVGAnimatedString> obj = imp->classNameAnimated();
260 JSValue result = toJS(exec, castedThis->globalObject(), obj.get());
265 JSValue jsSVGFEComponentTransferElementStyle(ExecState* exec, JSValue slotBase, const Identifier&)
267 JSSVGFEComponentTransferElement* castedThis = static_cast<JSSVGFEComponentTransferElement*>(asObject(slotBase));
269 SVGFEComponentTransferElement* imp = static_cast<SVGFEComponentTransferElement*>(castedThis->impl());
270 JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->style()));
275 JSValue jsSVGFEComponentTransferElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
277 JSSVGFEComponentTransferElement* domObject = static_cast<JSSVGFEComponentTransferElement*>(asObject(slotBase));
278 return JSSVGFEComponentTransferElement::getConstructor(exec, domObject->globalObject());
281 JSValue JSSVGFEComponentTransferElement::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
283 return getDOMConstructor<JSSVGFEComponentTransferElementConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));
286 EncodedJSValue JSC_HOST_CALL jsSVGFEComponentTransferElementPrototypeFunctionGetPresentationAttribute(ExecState* exec)
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());
298 JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->getPresentationAttribute(name)));
299 return JSValue::encode(result);
305 #endif // ENABLE(FILTERS) && ENABLE(SVG)