|
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) && ENABLE(FILTERS) |
|
24 |
|
25 #include "JSSVGFEConvolveMatrixElement.h" |
|
26 |
|
27 #include "CSSMutableStyleDeclaration.h" |
|
28 #include "CSSStyleDeclaration.h" |
|
29 #include "CSSValue.h" |
|
30 #include "JSCSSStyleDeclaration.h" |
|
31 #include "JSCSSValue.h" |
|
32 #include "JSSVGAnimatedBoolean.h" |
|
33 #include "JSSVGAnimatedEnumeration.h" |
|
34 #include "JSSVGAnimatedInteger.h" |
|
35 #include "JSSVGAnimatedLength.h" |
|
36 #include "JSSVGAnimatedNumber.h" |
|
37 #include "JSSVGAnimatedNumberList.h" |
|
38 #include "JSSVGAnimatedString.h" |
|
39 #include "SVGFEConvolveMatrixElement.h" |
|
40 #include <runtime/Error.h> |
|
41 #include <wtf/GetPtr.h> |
|
42 |
|
43 using namespace JSC; |
|
44 |
|
45 namespace WebCore { |
|
46 |
|
47 ASSERT_CLASS_FITS_IN_CELL(JSSVGFEConvolveMatrixElement); |
|
48 |
|
49 /* Hash table */ |
|
50 #if ENABLE(JIT) |
|
51 #define THUNK_GENERATOR(generator) , generator |
|
52 #else |
|
53 #define THUNK_GENERATOR(generator) |
|
54 #endif |
|
55 |
|
56 static const HashTableValue JSSVGFEConvolveMatrixElementTableValues[21] = |
|
57 { |
|
58 { "in1", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementIn1), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
59 { "orderX", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementOrderX), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
60 { "orderY", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementOrderY), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
61 { "kernelMatrix", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementKernelMatrix), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
62 { "divisor", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementDivisor), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
63 { "bias", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementBias), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
64 { "targetX", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementTargetX), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
65 { "targetY", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementTargetY), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
66 { "edgeMode", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementEdgeMode), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
67 { "kernelUnitLengthX", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementKernelUnitLengthX), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
68 { "kernelUnitLengthY", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementKernelUnitLengthY), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
69 { "preserveAlpha", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementPreserveAlpha), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
70 { "x", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementX), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
71 { "y", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementY), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
72 { "width", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementWidth), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
73 { "height", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementHeight), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
74 { "result", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementResult), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
75 { "className", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementClassName), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
76 { "style", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementStyle), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
77 { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementConstructor), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
78 { 0, 0, 0, 0 THUNK_GENERATOR(0) } |
|
79 }; |
|
80 |
|
81 #undef THUNK_GENERATOR |
|
82 static JSC_CONST_HASHTABLE HashTable JSSVGFEConvolveMatrixElementTable = { 68, 63, JSSVGFEConvolveMatrixElementTableValues, 0 }; |
|
83 /* Hash table for constructor */ |
|
84 #if ENABLE(JIT) |
|
85 #define THUNK_GENERATOR(generator) , generator |
|
86 #else |
|
87 #define THUNK_GENERATOR(generator) |
|
88 #endif |
|
89 |
|
90 static const HashTableValue JSSVGFEConvolveMatrixElementConstructorTableValues[5] = |
|
91 { |
|
92 { "SVG_EDGEMODE_UNKNOWN", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementSVG_EDGEMODE_UNKNOWN), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
93 { "SVG_EDGEMODE_DUPLICATE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementSVG_EDGEMODE_DUPLICATE), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
94 { "SVG_EDGEMODE_WRAP", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementSVG_EDGEMODE_WRAP), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
95 { "SVG_EDGEMODE_NONE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementSVG_EDGEMODE_NONE), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
96 { 0, 0, 0, 0 THUNK_GENERATOR(0) } |
|
97 }; |
|
98 |
|
99 #undef THUNK_GENERATOR |
|
100 static JSC_CONST_HASHTABLE HashTable JSSVGFEConvolveMatrixElementConstructorTable = { 9, 7, JSSVGFEConvolveMatrixElementConstructorTableValues, 0 }; |
|
101 class JSSVGFEConvolveMatrixElementConstructor : public DOMConstructorObject { |
|
102 public: |
|
103 JSSVGFEConvolveMatrixElementConstructor(JSC::ExecState*, JSDOMGlobalObject*); |
|
104 |
|
105 virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&); |
|
106 virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&); |
|
107 virtual const JSC::ClassInfo* classInfo() const { return &s_info; } |
|
108 static const JSC::ClassInfo s_info; |
|
109 static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype) |
|
110 { |
|
111 return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount); |
|
112 } |
|
113 protected: |
|
114 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags; |
|
115 }; |
|
116 |
|
117 const ClassInfo JSSVGFEConvolveMatrixElementConstructor::s_info = { "SVGFEConvolveMatrixElementConstructor", 0, &JSSVGFEConvolveMatrixElementConstructorTable, 0 }; |
|
118 |
|
119 JSSVGFEConvolveMatrixElementConstructor::JSSVGFEConvolveMatrixElementConstructor(ExecState* exec, JSDOMGlobalObject* globalObject) |
|
120 : DOMConstructorObject(JSSVGFEConvolveMatrixElementConstructor::createStructure(globalObject->objectPrototype()), globalObject) |
|
121 { |
|
122 putDirect(exec->propertyNames().prototype, JSSVGFEConvolveMatrixElementPrototype::self(exec, globalObject), DontDelete | ReadOnly); |
|
123 } |
|
124 |
|
125 bool JSSVGFEConvolveMatrixElementConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) |
|
126 { |
|
127 return getStaticValueSlot<JSSVGFEConvolveMatrixElementConstructor, DOMObject>(exec, &JSSVGFEConvolveMatrixElementConstructorTable, this, propertyName, slot); |
|
128 } |
|
129 |
|
130 bool JSSVGFEConvolveMatrixElementConstructor::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor) |
|
131 { |
|
132 return getStaticValueDescriptor<JSSVGFEConvolveMatrixElementConstructor, DOMObject>(exec, &JSSVGFEConvolveMatrixElementConstructorTable, this, propertyName, descriptor); |
|
133 } |
|
134 |
|
135 /* Hash table for prototype */ |
|
136 #if ENABLE(JIT) |
|
137 #define THUNK_GENERATOR(generator) , generator |
|
138 #else |
|
139 #define THUNK_GENERATOR(generator) |
|
140 #endif |
|
141 |
|
142 static const HashTableValue JSSVGFEConvolveMatrixElementPrototypeTableValues[6] = |
|
143 { |
|
144 { "SVG_EDGEMODE_UNKNOWN", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementSVG_EDGEMODE_UNKNOWN), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
145 { "SVG_EDGEMODE_DUPLICATE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementSVG_EDGEMODE_DUPLICATE), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
146 { "SVG_EDGEMODE_WRAP", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementSVG_EDGEMODE_WRAP), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
147 { "SVG_EDGEMODE_NONE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementSVG_EDGEMODE_NONE), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
148 { "getPresentationAttribute", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsSVGFEConvolveMatrixElementPrototypeFunctionGetPresentationAttribute), (intptr_t)1 THUNK_GENERATOR(0) }, |
|
149 { 0, 0, 0, 0 THUNK_GENERATOR(0) } |
|
150 }; |
|
151 |
|
152 #undef THUNK_GENERATOR |
|
153 static JSC_CONST_HASHTABLE HashTable JSSVGFEConvolveMatrixElementPrototypeTable = { 17, 15, JSSVGFEConvolveMatrixElementPrototypeTableValues, 0 }; |
|
154 const ClassInfo JSSVGFEConvolveMatrixElementPrototype::s_info = { "SVGFEConvolveMatrixElementPrototype", 0, &JSSVGFEConvolveMatrixElementPrototypeTable, 0 }; |
|
155 |
|
156 JSObject* JSSVGFEConvolveMatrixElementPrototype::self(ExecState* exec, JSGlobalObject* globalObject) |
|
157 { |
|
158 return getDOMPrototype<JSSVGFEConvolveMatrixElement>(exec, globalObject); |
|
159 } |
|
160 |
|
161 bool JSSVGFEConvolveMatrixElementPrototype::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) |
|
162 { |
|
163 return getStaticPropertySlot<JSSVGFEConvolveMatrixElementPrototype, JSObject>(exec, &JSSVGFEConvolveMatrixElementPrototypeTable, this, propertyName, slot); |
|
164 } |
|
165 |
|
166 bool JSSVGFEConvolveMatrixElementPrototype::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor) |
|
167 { |
|
168 return getStaticPropertyDescriptor<JSSVGFEConvolveMatrixElementPrototype, JSObject>(exec, &JSSVGFEConvolveMatrixElementPrototypeTable, this, propertyName, descriptor); |
|
169 } |
|
170 |
|
171 const ClassInfo JSSVGFEConvolveMatrixElement::s_info = { "SVGFEConvolveMatrixElement", &JSSVGElement::s_info, &JSSVGFEConvolveMatrixElementTable, 0 }; |
|
172 |
|
173 JSSVGFEConvolveMatrixElement::JSSVGFEConvolveMatrixElement(NonNullPassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<SVGFEConvolveMatrixElement> impl) |
|
174 : JSSVGElement(structure, globalObject, impl) |
|
175 { |
|
176 } |
|
177 |
|
178 JSObject* JSSVGFEConvolveMatrixElement::createPrototype(ExecState* exec, JSGlobalObject* globalObject) |
|
179 { |
|
180 return new (exec) JSSVGFEConvolveMatrixElementPrototype(globalObject, JSSVGFEConvolveMatrixElementPrototype::createStructure(JSSVGElementPrototype::self(exec, globalObject))); |
|
181 } |
|
182 |
|
183 bool JSSVGFEConvolveMatrixElement::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) |
|
184 { |
|
185 return getStaticValueSlot<JSSVGFEConvolveMatrixElement, Base>(exec, &JSSVGFEConvolveMatrixElementTable, this, propertyName, slot); |
|
186 } |
|
187 |
|
188 bool JSSVGFEConvolveMatrixElement::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor) |
|
189 { |
|
190 return getStaticValueDescriptor<JSSVGFEConvolveMatrixElement, Base>(exec, &JSSVGFEConvolveMatrixElementTable, this, propertyName, descriptor); |
|
191 } |
|
192 |
|
193 JSValue jsSVGFEConvolveMatrixElementIn1(ExecState* exec, JSValue slotBase, const Identifier&) |
|
194 { |
|
195 JSSVGFEConvolveMatrixElement* castedThis = static_cast<JSSVGFEConvolveMatrixElement*>(asObject(slotBase)); |
|
196 UNUSED_PARAM(exec); |
|
197 SVGFEConvolveMatrixElement* imp = static_cast<SVGFEConvolveMatrixElement*>(castedThis->impl()); |
|
198 RefPtr<SVGAnimatedString> obj = imp->in1Animated(); |
|
199 JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); |
|
200 return result; |
|
201 } |
|
202 |
|
203 JSValue jsSVGFEConvolveMatrixElementOrderX(ExecState* exec, JSValue slotBase, const Identifier&) |
|
204 { |
|
205 JSSVGFEConvolveMatrixElement* castedThis = static_cast<JSSVGFEConvolveMatrixElement*>(asObject(slotBase)); |
|
206 UNUSED_PARAM(exec); |
|
207 SVGFEConvolveMatrixElement* imp = static_cast<SVGFEConvolveMatrixElement*>(castedThis->impl()); |
|
208 RefPtr<SVGAnimatedInteger> obj = imp->orderXAnimated(); |
|
209 JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); |
|
210 return result; |
|
211 } |
|
212 |
|
213 JSValue jsSVGFEConvolveMatrixElementOrderY(ExecState* exec, JSValue slotBase, const Identifier&) |
|
214 { |
|
215 JSSVGFEConvolveMatrixElement* castedThis = static_cast<JSSVGFEConvolveMatrixElement*>(asObject(slotBase)); |
|
216 UNUSED_PARAM(exec); |
|
217 SVGFEConvolveMatrixElement* imp = static_cast<SVGFEConvolveMatrixElement*>(castedThis->impl()); |
|
218 RefPtr<SVGAnimatedInteger> obj = imp->orderYAnimated(); |
|
219 JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); |
|
220 return result; |
|
221 } |
|
222 |
|
223 JSValue jsSVGFEConvolveMatrixElementKernelMatrix(ExecState* exec, JSValue slotBase, const Identifier&) |
|
224 { |
|
225 JSSVGFEConvolveMatrixElement* castedThis = static_cast<JSSVGFEConvolveMatrixElement*>(asObject(slotBase)); |
|
226 UNUSED_PARAM(exec); |
|
227 SVGFEConvolveMatrixElement* imp = static_cast<SVGFEConvolveMatrixElement*>(castedThis->impl()); |
|
228 RefPtr<SVGAnimatedNumberList> obj = imp->kernelMatrixAnimated(); |
|
229 JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); |
|
230 return result; |
|
231 } |
|
232 |
|
233 JSValue jsSVGFEConvolveMatrixElementDivisor(ExecState* exec, JSValue slotBase, const Identifier&) |
|
234 { |
|
235 JSSVGFEConvolveMatrixElement* castedThis = static_cast<JSSVGFEConvolveMatrixElement*>(asObject(slotBase)); |
|
236 UNUSED_PARAM(exec); |
|
237 SVGFEConvolveMatrixElement* imp = static_cast<SVGFEConvolveMatrixElement*>(castedThis->impl()); |
|
238 RefPtr<SVGAnimatedNumber> obj = imp->divisorAnimated(); |
|
239 JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); |
|
240 return result; |
|
241 } |
|
242 |
|
243 JSValue jsSVGFEConvolveMatrixElementBias(ExecState* exec, JSValue slotBase, const Identifier&) |
|
244 { |
|
245 JSSVGFEConvolveMatrixElement* castedThis = static_cast<JSSVGFEConvolveMatrixElement*>(asObject(slotBase)); |
|
246 UNUSED_PARAM(exec); |
|
247 SVGFEConvolveMatrixElement* imp = static_cast<SVGFEConvolveMatrixElement*>(castedThis->impl()); |
|
248 RefPtr<SVGAnimatedNumber> obj = imp->biasAnimated(); |
|
249 JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); |
|
250 return result; |
|
251 } |
|
252 |
|
253 JSValue jsSVGFEConvolveMatrixElementTargetX(ExecState* exec, JSValue slotBase, const Identifier&) |
|
254 { |
|
255 JSSVGFEConvolveMatrixElement* castedThis = static_cast<JSSVGFEConvolveMatrixElement*>(asObject(slotBase)); |
|
256 UNUSED_PARAM(exec); |
|
257 SVGFEConvolveMatrixElement* imp = static_cast<SVGFEConvolveMatrixElement*>(castedThis->impl()); |
|
258 RefPtr<SVGAnimatedInteger> obj = imp->targetXAnimated(); |
|
259 JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); |
|
260 return result; |
|
261 } |
|
262 |
|
263 JSValue jsSVGFEConvolveMatrixElementTargetY(ExecState* exec, JSValue slotBase, const Identifier&) |
|
264 { |
|
265 JSSVGFEConvolveMatrixElement* castedThis = static_cast<JSSVGFEConvolveMatrixElement*>(asObject(slotBase)); |
|
266 UNUSED_PARAM(exec); |
|
267 SVGFEConvolveMatrixElement* imp = static_cast<SVGFEConvolveMatrixElement*>(castedThis->impl()); |
|
268 RefPtr<SVGAnimatedInteger> obj = imp->targetYAnimated(); |
|
269 JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); |
|
270 return result; |
|
271 } |
|
272 |
|
273 JSValue jsSVGFEConvolveMatrixElementEdgeMode(ExecState* exec, JSValue slotBase, const Identifier&) |
|
274 { |
|
275 JSSVGFEConvolveMatrixElement* castedThis = static_cast<JSSVGFEConvolveMatrixElement*>(asObject(slotBase)); |
|
276 UNUSED_PARAM(exec); |
|
277 SVGFEConvolveMatrixElement* imp = static_cast<SVGFEConvolveMatrixElement*>(castedThis->impl()); |
|
278 RefPtr<SVGAnimatedEnumeration> obj = imp->edgeModeAnimated(); |
|
279 JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); |
|
280 return result; |
|
281 } |
|
282 |
|
283 JSValue jsSVGFEConvolveMatrixElementKernelUnitLengthX(ExecState* exec, JSValue slotBase, const Identifier&) |
|
284 { |
|
285 JSSVGFEConvolveMatrixElement* castedThis = static_cast<JSSVGFEConvolveMatrixElement*>(asObject(slotBase)); |
|
286 UNUSED_PARAM(exec); |
|
287 SVGFEConvolveMatrixElement* imp = static_cast<SVGFEConvolveMatrixElement*>(castedThis->impl()); |
|
288 RefPtr<SVGAnimatedNumber> obj = imp->kernelUnitLengthXAnimated(); |
|
289 JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); |
|
290 return result; |
|
291 } |
|
292 |
|
293 JSValue jsSVGFEConvolveMatrixElementKernelUnitLengthY(ExecState* exec, JSValue slotBase, const Identifier&) |
|
294 { |
|
295 JSSVGFEConvolveMatrixElement* castedThis = static_cast<JSSVGFEConvolveMatrixElement*>(asObject(slotBase)); |
|
296 UNUSED_PARAM(exec); |
|
297 SVGFEConvolveMatrixElement* imp = static_cast<SVGFEConvolveMatrixElement*>(castedThis->impl()); |
|
298 RefPtr<SVGAnimatedNumber> obj = imp->kernelUnitLengthYAnimated(); |
|
299 JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); |
|
300 return result; |
|
301 } |
|
302 |
|
303 JSValue jsSVGFEConvolveMatrixElementPreserveAlpha(ExecState* exec, JSValue slotBase, const Identifier&) |
|
304 { |
|
305 JSSVGFEConvolveMatrixElement* castedThis = static_cast<JSSVGFEConvolveMatrixElement*>(asObject(slotBase)); |
|
306 UNUSED_PARAM(exec); |
|
307 SVGFEConvolveMatrixElement* imp = static_cast<SVGFEConvolveMatrixElement*>(castedThis->impl()); |
|
308 RefPtr<SVGAnimatedBoolean> obj = imp->preserveAlphaAnimated(); |
|
309 JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); |
|
310 return result; |
|
311 } |
|
312 |
|
313 JSValue jsSVGFEConvolveMatrixElementX(ExecState* exec, JSValue slotBase, const Identifier&) |
|
314 { |
|
315 JSSVGFEConvolveMatrixElement* castedThis = static_cast<JSSVGFEConvolveMatrixElement*>(asObject(slotBase)); |
|
316 UNUSED_PARAM(exec); |
|
317 SVGFEConvolveMatrixElement* imp = static_cast<SVGFEConvolveMatrixElement*>(castedThis->impl()); |
|
318 RefPtr<SVGAnimatedLength> obj = imp->xAnimated(); |
|
319 JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); |
|
320 return result; |
|
321 } |
|
322 |
|
323 JSValue jsSVGFEConvolveMatrixElementY(ExecState* exec, JSValue slotBase, const Identifier&) |
|
324 { |
|
325 JSSVGFEConvolveMatrixElement* castedThis = static_cast<JSSVGFEConvolveMatrixElement*>(asObject(slotBase)); |
|
326 UNUSED_PARAM(exec); |
|
327 SVGFEConvolveMatrixElement* imp = static_cast<SVGFEConvolveMatrixElement*>(castedThis->impl()); |
|
328 RefPtr<SVGAnimatedLength> obj = imp->yAnimated(); |
|
329 JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); |
|
330 return result; |
|
331 } |
|
332 |
|
333 JSValue jsSVGFEConvolveMatrixElementWidth(ExecState* exec, JSValue slotBase, const Identifier&) |
|
334 { |
|
335 JSSVGFEConvolveMatrixElement* castedThis = static_cast<JSSVGFEConvolveMatrixElement*>(asObject(slotBase)); |
|
336 UNUSED_PARAM(exec); |
|
337 SVGFEConvolveMatrixElement* imp = static_cast<SVGFEConvolveMatrixElement*>(castedThis->impl()); |
|
338 RefPtr<SVGAnimatedLength> obj = imp->widthAnimated(); |
|
339 JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); |
|
340 return result; |
|
341 } |
|
342 |
|
343 JSValue jsSVGFEConvolveMatrixElementHeight(ExecState* exec, JSValue slotBase, const Identifier&) |
|
344 { |
|
345 JSSVGFEConvolveMatrixElement* castedThis = static_cast<JSSVGFEConvolveMatrixElement*>(asObject(slotBase)); |
|
346 UNUSED_PARAM(exec); |
|
347 SVGFEConvolveMatrixElement* imp = static_cast<SVGFEConvolveMatrixElement*>(castedThis->impl()); |
|
348 RefPtr<SVGAnimatedLength> obj = imp->heightAnimated(); |
|
349 JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); |
|
350 return result; |
|
351 } |
|
352 |
|
353 JSValue jsSVGFEConvolveMatrixElementResult(ExecState* exec, JSValue slotBase, const Identifier&) |
|
354 { |
|
355 JSSVGFEConvolveMatrixElement* castedThis = static_cast<JSSVGFEConvolveMatrixElement*>(asObject(slotBase)); |
|
356 UNUSED_PARAM(exec); |
|
357 SVGFEConvolveMatrixElement* imp = static_cast<SVGFEConvolveMatrixElement*>(castedThis->impl()); |
|
358 RefPtr<SVGAnimatedString> obj = imp->resultAnimated(); |
|
359 JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); |
|
360 return result; |
|
361 } |
|
362 |
|
363 JSValue jsSVGFEConvolveMatrixElementClassName(ExecState* exec, JSValue slotBase, const Identifier&) |
|
364 { |
|
365 JSSVGFEConvolveMatrixElement* castedThis = static_cast<JSSVGFEConvolveMatrixElement*>(asObject(slotBase)); |
|
366 UNUSED_PARAM(exec); |
|
367 SVGFEConvolveMatrixElement* imp = static_cast<SVGFEConvolveMatrixElement*>(castedThis->impl()); |
|
368 RefPtr<SVGAnimatedString> obj = imp->classNameAnimated(); |
|
369 JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); |
|
370 return result; |
|
371 } |
|
372 |
|
373 JSValue jsSVGFEConvolveMatrixElementStyle(ExecState* exec, JSValue slotBase, const Identifier&) |
|
374 { |
|
375 JSSVGFEConvolveMatrixElement* castedThis = static_cast<JSSVGFEConvolveMatrixElement*>(asObject(slotBase)); |
|
376 UNUSED_PARAM(exec); |
|
377 SVGFEConvolveMatrixElement* imp = static_cast<SVGFEConvolveMatrixElement*>(castedThis->impl()); |
|
378 JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->style())); |
|
379 return result; |
|
380 } |
|
381 |
|
382 JSValue jsSVGFEConvolveMatrixElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&) |
|
383 { |
|
384 JSSVGFEConvolveMatrixElement* domObject = static_cast<JSSVGFEConvolveMatrixElement*>(asObject(slotBase)); |
|
385 return JSSVGFEConvolveMatrixElement::getConstructor(exec, domObject->globalObject()); |
|
386 } |
|
387 JSValue JSSVGFEConvolveMatrixElement::getConstructor(ExecState* exec, JSGlobalObject* globalObject) |
|
388 { |
|
389 return getDOMConstructor<JSSVGFEConvolveMatrixElementConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject)); |
|
390 } |
|
391 |
|
392 EncodedJSValue JSC_HOST_CALL jsSVGFEConvolveMatrixElementPrototypeFunctionGetPresentationAttribute(ExecState* exec) |
|
393 { |
|
394 JSValue thisValue = exec->hostThisValue(); |
|
395 if (!thisValue.inherits(&JSSVGFEConvolveMatrixElement::s_info)) |
|
396 return throwVMTypeError(exec); |
|
397 JSSVGFEConvolveMatrixElement* castedThis = static_cast<JSSVGFEConvolveMatrixElement*>(asObject(thisValue)); |
|
398 SVGFEConvolveMatrixElement* imp = static_cast<SVGFEConvolveMatrixElement*>(castedThis->impl()); |
|
399 const String& name = ustringToString(exec->argument(0).toString(exec)); |
|
400 |
|
401 |
|
402 JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->getPresentationAttribute(name))); |
|
403 return JSValue::encode(result); |
|
404 } |
|
405 |
|
406 // Constant getters |
|
407 |
|
408 JSValue jsSVGFEConvolveMatrixElementSVG_EDGEMODE_UNKNOWN(ExecState* exec, JSValue, const Identifier&) |
|
409 { |
|
410 return jsNumber(exec, static_cast<int>(0)); |
|
411 } |
|
412 |
|
413 JSValue jsSVGFEConvolveMatrixElementSVG_EDGEMODE_DUPLICATE(ExecState* exec, JSValue, const Identifier&) |
|
414 { |
|
415 return jsNumber(exec, static_cast<int>(1)); |
|
416 } |
|
417 |
|
418 JSValue jsSVGFEConvolveMatrixElementSVG_EDGEMODE_WRAP(ExecState* exec, JSValue, const Identifier&) |
|
419 { |
|
420 return jsNumber(exec, static_cast<int>(2)); |
|
421 } |
|
422 |
|
423 JSValue jsSVGFEConvolveMatrixElementSVG_EDGEMODE_NONE(ExecState* exec, JSValue, const Identifier&) |
|
424 { |
|
425 return jsNumber(exec, static_cast<int>(3)); |
|
426 } |
|
427 |
|
428 |
|
429 } |
|
430 |
|
431 #endif // ENABLE(SVG) && ENABLE(FILTERS) |