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 "JSSVGFEFuncBElement.h"
27 #include "SVGFEFuncBElement.h"
28 #include <wtf/GetPtr.h>
34 ASSERT_CLASS_FITS_IN_CELL(JSSVGFEFuncBElement);
38 #define THUNK_GENERATOR(generator) , generator
40 #define THUNK_GENERATOR(generator)
43 #define INTRINSIC(intrinsic) , intrinsic
45 #define INTRINSIC(intrinsic)
48 static const HashTableValue JSSVGFEFuncBElementTableValues[] =
50 { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEFuncBElementConstructor), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
51 { 0, 0, 0, 0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) }
54 #undef THUNK_GENERATOR
55 static const HashTable JSSVGFEFuncBElementTable = { 2, 1, JSSVGFEFuncBElementTableValues, 0 };
56 /* Hash table for constructor */
58 #define THUNK_GENERATOR(generator) , generator
60 #define THUNK_GENERATOR(generator)
63 #define INTRINSIC(intrinsic) , intrinsic
65 #define INTRINSIC(intrinsic)
68 static const HashTableValue JSSVGFEFuncBElementConstructorTableValues[] =
70 { 0, 0, 0, 0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) }
73 #undef THUNK_GENERATOR
74 static const HashTable JSSVGFEFuncBElementConstructorTable = { 1, 0, JSSVGFEFuncBElementConstructorTableValues, 0 };
75 const ClassInfo JSSVGFEFuncBElementConstructor::s_info = { "SVGFEFuncBElementConstructor", &DOMConstructorObject::s_info, &JSSVGFEFuncBElementConstructorTable, 0, CREATE_METHOD_TABLE(JSSVGFEFuncBElementConstructor) };
77 JSSVGFEFuncBElementConstructor::JSSVGFEFuncBElementConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
78 : DOMConstructorObject(structure, globalObject)
82 void JSSVGFEFuncBElementConstructor::finishCreation(ExecState* exec, JSDOMGlobalObject* globalObject)
84 Base::finishCreation(exec->globalData());
85 ASSERT(inherits(&s_info));
86 putDirect(exec->globalData(), exec->propertyNames().prototype, JSSVGFEFuncBElementPrototype::self(exec, globalObject), DontDelete | ReadOnly);
89 bool JSSVGFEFuncBElementConstructor::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
91 return getStaticValueSlot<JSSVGFEFuncBElementConstructor, JSDOMWrapper>(exec, &JSSVGFEFuncBElementConstructorTable, static_cast<JSSVGFEFuncBElementConstructor*>(cell), propertyName, slot);
94 bool JSSVGFEFuncBElementConstructor::getOwnPropertyDescriptor(JSObject* object, ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
96 return getStaticValueDescriptor<JSSVGFEFuncBElementConstructor, JSDOMWrapper>(exec, &JSSVGFEFuncBElementConstructorTable, static_cast<JSSVGFEFuncBElementConstructor*>(object), propertyName, descriptor);
99 /* Hash table for prototype */
101 #define THUNK_GENERATOR(generator) , generator
103 #define THUNK_GENERATOR(generator)
106 #define INTRINSIC(intrinsic) , intrinsic
108 #define INTRINSIC(intrinsic)
111 static const HashTableValue JSSVGFEFuncBElementPrototypeTableValues[] =
113 { 0, 0, 0, 0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) }
116 #undef THUNK_GENERATOR
117 static const HashTable JSSVGFEFuncBElementPrototypeTable = { 1, 0, JSSVGFEFuncBElementPrototypeTableValues, 0 };
118 const ClassInfo JSSVGFEFuncBElementPrototype::s_info = { "SVGFEFuncBElementPrototype", &JSC::JSNonFinalObject::s_info, &JSSVGFEFuncBElementPrototypeTable, 0, CREATE_METHOD_TABLE(JSSVGFEFuncBElementPrototype) };
120 JSObject* JSSVGFEFuncBElementPrototype::self(ExecState* exec, JSGlobalObject* globalObject)
122 return getDOMPrototype<JSSVGFEFuncBElement>(exec, globalObject);
125 const ClassInfo JSSVGFEFuncBElement::s_info = { "SVGFEFuncBElement", &JSSVGComponentTransferFunctionElement::s_info, &JSSVGFEFuncBElementTable, 0 , CREATE_METHOD_TABLE(JSSVGFEFuncBElement) };
127 JSSVGFEFuncBElement::JSSVGFEFuncBElement(Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<SVGFEFuncBElement> impl)
128 : JSSVGComponentTransferFunctionElement(structure, globalObject, impl)
132 void JSSVGFEFuncBElement::finishCreation(JSGlobalData& globalData)
134 Base::finishCreation(globalData);
135 ASSERT(inherits(&s_info));
138 JSObject* JSSVGFEFuncBElement::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
140 return JSSVGFEFuncBElementPrototype::create(exec->globalData(), globalObject, JSSVGFEFuncBElementPrototype::createStructure(exec->globalData(), globalObject, JSSVGComponentTransferFunctionElementPrototype::self(exec, globalObject)));
143 bool JSSVGFEFuncBElement::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
145 JSSVGFEFuncBElement* thisObject = jsCast<JSSVGFEFuncBElement*>(cell);
146 ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
147 return getStaticValueSlot<JSSVGFEFuncBElement, Base>(exec, &JSSVGFEFuncBElementTable, thisObject, propertyName, slot);
150 bool JSSVGFEFuncBElement::getOwnPropertyDescriptor(JSObject* object, ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
152 JSSVGFEFuncBElement* thisObject = jsCast<JSSVGFEFuncBElement*>(object);
153 ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
154 return getStaticValueDescriptor<JSSVGFEFuncBElement, Base>(exec, &JSSVGFEFuncBElementTable, thisObject, propertyName, descriptor);
157 JSValue jsSVGFEFuncBElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
159 JSSVGFEFuncBElement* domObject = static_cast<JSSVGFEFuncBElement*>(asObject(slotBase));
160 return JSSVGFEFuncBElement::getConstructor(exec, domObject->globalObject());
163 JSValue JSSVGFEFuncBElement::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
165 return getDOMConstructor<JSSVGFEFuncBElementConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));
171 #endif // ENABLE(FILTERS) && ENABLE(SVG)