|
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(SVG) |
|
24 |
|
25 #include "JSSVGRadialGradientElement.h" |
|
26 |
|
27 #include "JSSVGAnimatedLength.h" |
|
28 #include "SVGRadialGradientElement.h" |
|
29 #include <wtf/GetPtr.h> |
|
30 |
|
31 using namespace JSC; |
|
32 |
|
33 namespace WebCore { |
|
34 |
|
35 ASSERT_CLASS_FITS_IN_CELL(JSSVGRadialGradientElement); |
|
36 |
|
37 /* Hash table */ |
|
38 #if ENABLE(JIT) |
|
39 #define THUNK_GENERATOR(generator) , generator |
|
40 #else |
|
41 #define THUNK_GENERATOR(generator) |
|
42 #endif |
|
43 |
|
44 static const HashTableValue JSSVGRadialGradientElementTableValues[7] = |
|
45 { |
|
46 { "cx", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGRadialGradientElementCx), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
47 { "cy", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGRadialGradientElementCy), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
48 { "r", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGRadialGradientElementR), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
49 { "fx", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGRadialGradientElementFx), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
50 { "fy", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGRadialGradientElementFy), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
51 { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGRadialGradientElementConstructor), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
52 { 0, 0, 0, 0 THUNK_GENERATOR(0) } |
|
53 }; |
|
54 |
|
55 #undef THUNK_GENERATOR |
|
56 static JSC_CONST_HASHTABLE HashTable JSSVGRadialGradientElementTable = { 18, 15, JSSVGRadialGradientElementTableValues, 0 }; |
|
57 /* Hash table for constructor */ |
|
58 #if ENABLE(JIT) |
|
59 #define THUNK_GENERATOR(generator) , generator |
|
60 #else |
|
61 #define THUNK_GENERATOR(generator) |
|
62 #endif |
|
63 |
|
64 static const HashTableValue JSSVGRadialGradientElementConstructorTableValues[1] = |
|
65 { |
|
66 { 0, 0, 0, 0 THUNK_GENERATOR(0) } |
|
67 }; |
|
68 |
|
69 #undef THUNK_GENERATOR |
|
70 static JSC_CONST_HASHTABLE HashTable JSSVGRadialGradientElementConstructorTable = { 1, 0, JSSVGRadialGradientElementConstructorTableValues, 0 }; |
|
71 class JSSVGRadialGradientElementConstructor : public DOMConstructorObject { |
|
72 public: |
|
73 JSSVGRadialGradientElementConstructor(JSC::ExecState*, JSDOMGlobalObject*); |
|
74 |
|
75 virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&); |
|
76 virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&); |
|
77 virtual const JSC::ClassInfo* classInfo() const { return &s_info; } |
|
78 static const JSC::ClassInfo s_info; |
|
79 static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype) |
|
80 { |
|
81 return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount); |
|
82 } |
|
83 protected: |
|
84 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags; |
|
85 }; |
|
86 |
|
87 const ClassInfo JSSVGRadialGradientElementConstructor::s_info = { "SVGRadialGradientElementConstructor", 0, &JSSVGRadialGradientElementConstructorTable, 0 }; |
|
88 |
|
89 JSSVGRadialGradientElementConstructor::JSSVGRadialGradientElementConstructor(ExecState* exec, JSDOMGlobalObject* globalObject) |
|
90 : DOMConstructorObject(JSSVGRadialGradientElementConstructor::createStructure(globalObject->objectPrototype()), globalObject) |
|
91 { |
|
92 putDirect(exec->propertyNames().prototype, JSSVGRadialGradientElementPrototype::self(exec, globalObject), DontDelete | ReadOnly); |
|
93 } |
|
94 |
|
95 bool JSSVGRadialGradientElementConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) |
|
96 { |
|
97 return getStaticValueSlot<JSSVGRadialGradientElementConstructor, DOMObject>(exec, &JSSVGRadialGradientElementConstructorTable, this, propertyName, slot); |
|
98 } |
|
99 |
|
100 bool JSSVGRadialGradientElementConstructor::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor) |
|
101 { |
|
102 return getStaticValueDescriptor<JSSVGRadialGradientElementConstructor, DOMObject>(exec, &JSSVGRadialGradientElementConstructorTable, this, propertyName, descriptor); |
|
103 } |
|
104 |
|
105 /* Hash table for prototype */ |
|
106 #if ENABLE(JIT) |
|
107 #define THUNK_GENERATOR(generator) , generator |
|
108 #else |
|
109 #define THUNK_GENERATOR(generator) |
|
110 #endif |
|
111 |
|
112 static const HashTableValue JSSVGRadialGradientElementPrototypeTableValues[1] = |
|
113 { |
|
114 { 0, 0, 0, 0 THUNK_GENERATOR(0) } |
|
115 }; |
|
116 |
|
117 #undef THUNK_GENERATOR |
|
118 static JSC_CONST_HASHTABLE HashTable JSSVGRadialGradientElementPrototypeTable = { 1, 0, JSSVGRadialGradientElementPrototypeTableValues, 0 }; |
|
119 const ClassInfo JSSVGRadialGradientElementPrototype::s_info = { "SVGRadialGradientElementPrototype", 0, &JSSVGRadialGradientElementPrototypeTable, 0 }; |
|
120 |
|
121 JSObject* JSSVGRadialGradientElementPrototype::self(ExecState* exec, JSGlobalObject* globalObject) |
|
122 { |
|
123 return getDOMPrototype<JSSVGRadialGradientElement>(exec, globalObject); |
|
124 } |
|
125 |
|
126 const ClassInfo JSSVGRadialGradientElement::s_info = { "SVGRadialGradientElement", &JSSVGGradientElement::s_info, &JSSVGRadialGradientElementTable, 0 }; |
|
127 |
|
128 JSSVGRadialGradientElement::JSSVGRadialGradientElement(NonNullPassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<SVGRadialGradientElement> impl) |
|
129 : JSSVGGradientElement(structure, globalObject, impl) |
|
130 { |
|
131 } |
|
132 |
|
133 JSObject* JSSVGRadialGradientElement::createPrototype(ExecState* exec, JSGlobalObject* globalObject) |
|
134 { |
|
135 return new (exec) JSSVGRadialGradientElementPrototype(globalObject, JSSVGRadialGradientElementPrototype::createStructure(JSSVGGradientElementPrototype::self(exec, globalObject))); |
|
136 } |
|
137 |
|
138 bool JSSVGRadialGradientElement::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) |
|
139 { |
|
140 return getStaticValueSlot<JSSVGRadialGradientElement, Base>(exec, &JSSVGRadialGradientElementTable, this, propertyName, slot); |
|
141 } |
|
142 |
|
143 bool JSSVGRadialGradientElement::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor) |
|
144 { |
|
145 return getStaticValueDescriptor<JSSVGRadialGradientElement, Base>(exec, &JSSVGRadialGradientElementTable, this, propertyName, descriptor); |
|
146 } |
|
147 |
|
148 JSValue jsSVGRadialGradientElementCx(ExecState* exec, JSValue slotBase, const Identifier&) |
|
149 { |
|
150 JSSVGRadialGradientElement* castedThis = static_cast<JSSVGRadialGradientElement*>(asObject(slotBase)); |
|
151 UNUSED_PARAM(exec); |
|
152 SVGRadialGradientElement* imp = static_cast<SVGRadialGradientElement*>(castedThis->impl()); |
|
153 RefPtr<SVGAnimatedLength> obj = imp->cxAnimated(); |
|
154 JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); |
|
155 return result; |
|
156 } |
|
157 |
|
158 JSValue jsSVGRadialGradientElementCy(ExecState* exec, JSValue slotBase, const Identifier&) |
|
159 { |
|
160 JSSVGRadialGradientElement* castedThis = static_cast<JSSVGRadialGradientElement*>(asObject(slotBase)); |
|
161 UNUSED_PARAM(exec); |
|
162 SVGRadialGradientElement* imp = static_cast<SVGRadialGradientElement*>(castedThis->impl()); |
|
163 RefPtr<SVGAnimatedLength> obj = imp->cyAnimated(); |
|
164 JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); |
|
165 return result; |
|
166 } |
|
167 |
|
168 JSValue jsSVGRadialGradientElementR(ExecState* exec, JSValue slotBase, const Identifier&) |
|
169 { |
|
170 JSSVGRadialGradientElement* castedThis = static_cast<JSSVGRadialGradientElement*>(asObject(slotBase)); |
|
171 UNUSED_PARAM(exec); |
|
172 SVGRadialGradientElement* imp = static_cast<SVGRadialGradientElement*>(castedThis->impl()); |
|
173 RefPtr<SVGAnimatedLength> obj = imp->rAnimated(); |
|
174 JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); |
|
175 return result; |
|
176 } |
|
177 |
|
178 JSValue jsSVGRadialGradientElementFx(ExecState* exec, JSValue slotBase, const Identifier&) |
|
179 { |
|
180 JSSVGRadialGradientElement* castedThis = static_cast<JSSVGRadialGradientElement*>(asObject(slotBase)); |
|
181 UNUSED_PARAM(exec); |
|
182 SVGRadialGradientElement* imp = static_cast<SVGRadialGradientElement*>(castedThis->impl()); |
|
183 RefPtr<SVGAnimatedLength> obj = imp->fxAnimated(); |
|
184 JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); |
|
185 return result; |
|
186 } |
|
187 |
|
188 JSValue jsSVGRadialGradientElementFy(ExecState* exec, JSValue slotBase, const Identifier&) |
|
189 { |
|
190 JSSVGRadialGradientElement* castedThis = static_cast<JSSVGRadialGradientElement*>(asObject(slotBase)); |
|
191 UNUSED_PARAM(exec); |
|
192 SVGRadialGradientElement* imp = static_cast<SVGRadialGradientElement*>(castedThis->impl()); |
|
193 RefPtr<SVGAnimatedLength> obj = imp->fyAnimated(); |
|
194 JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); |
|
195 return result; |
|
196 } |
|
197 |
|
198 JSValue jsSVGRadialGradientElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&) |
|
199 { |
|
200 JSSVGRadialGradientElement* domObject = static_cast<JSSVGRadialGradientElement*>(asObject(slotBase)); |
|
201 return JSSVGRadialGradientElement::getConstructor(exec, domObject->globalObject()); |
|
202 } |
|
203 JSValue JSSVGRadialGradientElement::getConstructor(ExecState* exec, JSGlobalObject* globalObject) |
|
204 { |
|
205 return getDOMConstructor<JSSVGRadialGradientElementConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject)); |
|
206 } |
|
207 |
|
208 |
|
209 } |
|
210 |
|
211 #endif // ENABLE(SVG) |