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 | #include "JSSVGFETurbulenceElement.h" |
23 | |
24 | #include "JSDOMAttribute.h" |
25 | #include "JSDOMBinding.h" |
26 | #include "JSDOMConstructorNotConstructable.h" |
27 | #include "JSDOMConvertInterface.h" |
28 | #include "JSDOMExceptionHandling.h" |
29 | #include "JSDOMGlobalObject.h" |
30 | #include "JSDOMWrapperCache.h" |
31 | #include "JSSVGAnimatedEnumeration.h" |
32 | #include "JSSVGAnimatedInteger.h" |
33 | #include "JSSVGAnimatedLength.h" |
34 | #include "JSSVGAnimatedNumber.h" |
35 | #include "JSSVGAnimatedString.h" |
36 | #include "ScriptExecutionContext.h" |
37 | #include <JavaScriptCore/HeapSnapshotBuilder.h> |
38 | #include <JavaScriptCore/JSCInlines.h> |
39 | #include <wtf/GetPtr.h> |
40 | #include <wtf/PointerPreparations.h> |
41 | #include <wtf/URL.h> |
42 | |
43 | |
44 | namespace WebCore { |
45 | using namespace JSC; |
46 | |
47 | // Attributes |
48 | |
49 | JSC::EncodedJSValue jsSVGFETurbulenceElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
50 | bool setJSSVGFETurbulenceElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
51 | JSC::EncodedJSValue jsSVGFETurbulenceElementBaseFrequencyX(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
52 | JSC::EncodedJSValue jsSVGFETurbulenceElementBaseFrequencyY(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
53 | JSC::EncodedJSValue jsSVGFETurbulenceElementNumOctaves(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
54 | JSC::EncodedJSValue jsSVGFETurbulenceElementSeed(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
55 | JSC::EncodedJSValue jsSVGFETurbulenceElementStitchTiles(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
56 | JSC::EncodedJSValue jsSVGFETurbulenceElementType(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
57 | JSC::EncodedJSValue jsSVGFETurbulenceElementX(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
58 | JSC::EncodedJSValue jsSVGFETurbulenceElementY(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
59 | JSC::EncodedJSValue jsSVGFETurbulenceElementWidth(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
60 | JSC::EncodedJSValue jsSVGFETurbulenceElementHeight(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
61 | JSC::EncodedJSValue jsSVGFETurbulenceElementResult(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
62 | |
63 | class JSSVGFETurbulenceElementPrototype : public JSC::JSNonFinalObject { |
64 | public: |
65 | using Base = JSC::JSNonFinalObject; |
66 | static JSSVGFETurbulenceElementPrototype* create(JSC::VM& vm, JSDOMGlobalObject* globalObject, JSC::Structure* structure) |
67 | { |
68 | JSSVGFETurbulenceElementPrototype* ptr = new (NotNull, JSC::allocateCell<JSSVGFETurbulenceElementPrototype>(vm.heap)) JSSVGFETurbulenceElementPrototype(vm, globalObject, structure); |
69 | ptr->finishCreation(vm); |
70 | return ptr; |
71 | } |
72 | |
73 | DECLARE_INFO; |
74 | static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype) |
75 | { |
76 | return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info()); |
77 | } |
78 | |
79 | private: |
80 | JSSVGFETurbulenceElementPrototype(JSC::VM& vm, JSC::JSGlobalObject*, JSC::Structure* structure) |
81 | : JSC::JSNonFinalObject(vm, structure) |
82 | { |
83 | } |
84 | |
85 | void finishCreation(JSC::VM&); |
86 | }; |
87 | |
88 | using JSSVGFETurbulenceElementConstructor = JSDOMConstructorNotConstructable<JSSVGFETurbulenceElement>; |
89 | |
90 | /* Hash table for constructor */ |
91 | |
92 | static const HashTableValue JSSVGFETurbulenceElementConstructorTableValues[] = |
93 | { |
94 | { "SVG_TURBULENCE_TYPE_UNKNOWN" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0) } }, |
95 | { "SVG_TURBULENCE_TYPE_FRACTALNOISE" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(1) } }, |
96 | { "SVG_TURBULENCE_TYPE_TURBULENCE" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(2) } }, |
97 | { "SVG_STITCHTYPE_UNKNOWN" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0) } }, |
98 | { "SVG_STITCHTYPE_STITCH" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(1) } }, |
99 | { "SVG_STITCHTYPE_NOSTITCH" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(2) } }, |
100 | }; |
101 | |
102 | template<> JSValue JSSVGFETurbulenceElementConstructor::prototypeForStructure(JSC::VM& vm, const JSDOMGlobalObject& globalObject) |
103 | { |
104 | return JSSVGElement::getConstructor(vm, &globalObject); |
105 | } |
106 | |
107 | template<> void JSSVGFETurbulenceElementConstructor::initializeProperties(VM& vm, JSDOMGlobalObject& globalObject) |
108 | { |
109 | putDirect(vm, vm.propertyNames->prototype, JSSVGFETurbulenceElement::prototype(vm, globalObject), JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum); |
110 | putDirect(vm, vm.propertyNames->name, jsNontrivialString(&vm, String("SVGFETurbulenceElement"_s )), JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum); |
111 | putDirect(vm, vm.propertyNames->length, jsNumber(0), JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum); |
112 | reifyStaticProperties(vm, JSSVGFETurbulenceElement::info(), JSSVGFETurbulenceElementConstructorTableValues, *this); |
113 | } |
114 | |
115 | template<> const ClassInfo JSSVGFETurbulenceElementConstructor::s_info = { "SVGFETurbulenceElement" , &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSSVGFETurbulenceElementConstructor) }; |
116 | |
117 | /* Hash table for prototype */ |
118 | |
119 | static const HashTableValue JSSVGFETurbulenceElementPrototypeTableValues[] = |
120 | { |
121 | { "constructor" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSSVGFETurbulenceElementConstructor) } }, |
122 | { "baseFrequencyX" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementBaseFrequencyX), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
123 | { "baseFrequencyY" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementBaseFrequencyY), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
124 | { "numOctaves" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementNumOctaves), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
125 | { "seed" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementSeed), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
126 | { "stitchTiles" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementStitchTiles), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
127 | { "type" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementType), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
128 | { "x" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementX), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
129 | { "y" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementY), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
130 | { "width" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementWidth), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
131 | { "height" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementHeight), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
132 | { "result" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementResult), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
133 | { "SVG_TURBULENCE_TYPE_UNKNOWN" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0) } }, |
134 | { "SVG_TURBULENCE_TYPE_FRACTALNOISE" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(1) } }, |
135 | { "SVG_TURBULENCE_TYPE_TURBULENCE" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(2) } }, |
136 | { "SVG_STITCHTYPE_UNKNOWN" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0) } }, |
137 | { "SVG_STITCHTYPE_STITCH" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(1) } }, |
138 | { "SVG_STITCHTYPE_NOSTITCH" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(2) } }, |
139 | }; |
140 | |
141 | const ClassInfo JSSVGFETurbulenceElementPrototype::s_info = { "SVGFETurbulenceElementPrototype" , &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSSVGFETurbulenceElementPrototype) }; |
142 | |
143 | void JSSVGFETurbulenceElementPrototype::finishCreation(VM& vm) |
144 | { |
145 | Base::finishCreation(vm); |
146 | reifyStaticProperties(vm, JSSVGFETurbulenceElement::info(), JSSVGFETurbulenceElementPrototypeTableValues, *this); |
147 | } |
148 | |
149 | const ClassInfo JSSVGFETurbulenceElement::s_info = { "SVGFETurbulenceElement" , &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSSVGFETurbulenceElement) }; |
150 | |
151 | JSSVGFETurbulenceElement::JSSVGFETurbulenceElement(Structure* structure, JSDOMGlobalObject& globalObject, Ref<SVGFETurbulenceElement>&& impl) |
152 | : JSSVGElement(structure, globalObject, WTFMove(impl)) |
153 | { |
154 | } |
155 | |
156 | void JSSVGFETurbulenceElement::finishCreation(VM& vm) |
157 | { |
158 | Base::finishCreation(vm); |
159 | ASSERT(inherits(vm, info())); |
160 | |
161 | } |
162 | |
163 | JSObject* JSSVGFETurbulenceElement::createPrototype(VM& vm, JSDOMGlobalObject& globalObject) |
164 | { |
165 | return JSSVGFETurbulenceElementPrototype::create(vm, &globalObject, JSSVGFETurbulenceElementPrototype::createStructure(vm, &globalObject, JSSVGElement::prototype(vm, globalObject))); |
166 | } |
167 | |
168 | JSObject* JSSVGFETurbulenceElement::prototype(VM& vm, JSDOMGlobalObject& globalObject) |
169 | { |
170 | return getDOMPrototype<JSSVGFETurbulenceElement>(vm, globalObject); |
171 | } |
172 | |
173 | JSValue JSSVGFETurbulenceElement::getConstructor(VM& vm, const JSGlobalObject* globalObject) |
174 | { |
175 | return getDOMConstructor<JSSVGFETurbulenceElementConstructor>(vm, *jsCast<const JSDOMGlobalObject*>(globalObject)); |
176 | } |
177 | |
178 | template<> inline JSSVGFETurbulenceElement* IDLAttribute<JSSVGFETurbulenceElement>::cast(ExecState& state, EncodedJSValue thisValue) |
179 | { |
180 | return jsDynamicCast<JSSVGFETurbulenceElement*>(state.vm(), JSValue::decode(thisValue)); |
181 | } |
182 | |
183 | EncodedJSValue jsSVGFETurbulenceElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
184 | { |
185 | VM& vm = state->vm(); |
186 | auto throwScope = DECLARE_THROW_SCOPE(vm); |
187 | auto* prototype = jsDynamicCast<JSSVGFETurbulenceElementPrototype*>(vm, JSValue::decode(thisValue)); |
188 | if (UNLIKELY(!prototype)) |
189 | return throwVMTypeError(state, throwScope); |
190 | return JSValue::encode(JSSVGFETurbulenceElement::getConstructor(state->vm(), prototype->globalObject())); |
191 | } |
192 | |
193 | bool setJSSVGFETurbulenceElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
194 | { |
195 | VM& vm = state->vm(); |
196 | auto throwScope = DECLARE_THROW_SCOPE(vm); |
197 | auto* prototype = jsDynamicCast<JSSVGFETurbulenceElementPrototype*>(vm, JSValue::decode(thisValue)); |
198 | if (UNLIKELY(!prototype)) { |
199 | throwVMTypeError(state, throwScope); |
200 | return false; |
201 | } |
202 | // Shadowing a built-in constructor |
203 | return prototype->putDirect(vm, vm.propertyNames->constructor, JSValue::decode(encodedValue)); |
204 | } |
205 | |
206 | static inline JSValue jsSVGFETurbulenceElementBaseFrequencyXGetter(ExecState& state, JSSVGFETurbulenceElement& thisObject, ThrowScope& throwScope) |
207 | { |
208 | UNUSED_PARAM(throwScope); |
209 | UNUSED_PARAM(state); |
210 | auto& impl = thisObject.wrapped(); |
211 | JSValue result = toJS<IDLInterface<SVGAnimatedNumber>>(state, *thisObject.globalObject(), throwScope, impl.baseFrequencyXAnimated()); |
212 | return result; |
213 | } |
214 | |
215 | EncodedJSValue jsSVGFETurbulenceElementBaseFrequencyX(ExecState* state, EncodedJSValue thisValue, PropertyName) |
216 | { |
217 | return IDLAttribute<JSSVGFETurbulenceElement>::get<jsSVGFETurbulenceElementBaseFrequencyXGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "baseFrequencyX" ); |
218 | } |
219 | |
220 | static inline JSValue jsSVGFETurbulenceElementBaseFrequencyYGetter(ExecState& state, JSSVGFETurbulenceElement& thisObject, ThrowScope& throwScope) |
221 | { |
222 | UNUSED_PARAM(throwScope); |
223 | UNUSED_PARAM(state); |
224 | auto& impl = thisObject.wrapped(); |
225 | JSValue result = toJS<IDLInterface<SVGAnimatedNumber>>(state, *thisObject.globalObject(), throwScope, impl.baseFrequencyYAnimated()); |
226 | return result; |
227 | } |
228 | |
229 | EncodedJSValue jsSVGFETurbulenceElementBaseFrequencyY(ExecState* state, EncodedJSValue thisValue, PropertyName) |
230 | { |
231 | return IDLAttribute<JSSVGFETurbulenceElement>::get<jsSVGFETurbulenceElementBaseFrequencyYGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "baseFrequencyY" ); |
232 | } |
233 | |
234 | static inline JSValue jsSVGFETurbulenceElementNumOctavesGetter(ExecState& state, JSSVGFETurbulenceElement& thisObject, ThrowScope& throwScope) |
235 | { |
236 | UNUSED_PARAM(throwScope); |
237 | UNUSED_PARAM(state); |
238 | auto& impl = thisObject.wrapped(); |
239 | JSValue result = toJS<IDLInterface<SVGAnimatedInteger>>(state, *thisObject.globalObject(), throwScope, impl.numOctavesAnimated()); |
240 | return result; |
241 | } |
242 | |
243 | EncodedJSValue jsSVGFETurbulenceElementNumOctaves(ExecState* state, EncodedJSValue thisValue, PropertyName) |
244 | { |
245 | return IDLAttribute<JSSVGFETurbulenceElement>::get<jsSVGFETurbulenceElementNumOctavesGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "numOctaves" ); |
246 | } |
247 | |
248 | static inline JSValue jsSVGFETurbulenceElementSeedGetter(ExecState& state, JSSVGFETurbulenceElement& thisObject, ThrowScope& throwScope) |
249 | { |
250 | UNUSED_PARAM(throwScope); |
251 | UNUSED_PARAM(state); |
252 | auto& impl = thisObject.wrapped(); |
253 | JSValue result = toJS<IDLInterface<SVGAnimatedNumber>>(state, *thisObject.globalObject(), throwScope, impl.seedAnimated()); |
254 | return result; |
255 | } |
256 | |
257 | EncodedJSValue jsSVGFETurbulenceElementSeed(ExecState* state, EncodedJSValue thisValue, PropertyName) |
258 | { |
259 | return IDLAttribute<JSSVGFETurbulenceElement>::get<jsSVGFETurbulenceElementSeedGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "seed" ); |
260 | } |
261 | |
262 | static inline JSValue jsSVGFETurbulenceElementStitchTilesGetter(ExecState& state, JSSVGFETurbulenceElement& thisObject, ThrowScope& throwScope) |
263 | { |
264 | UNUSED_PARAM(throwScope); |
265 | UNUSED_PARAM(state); |
266 | auto& impl = thisObject.wrapped(); |
267 | JSValue result = toJS<IDLInterface<SVGAnimatedEnumeration>>(state, *thisObject.globalObject(), throwScope, impl.stitchTilesAnimated()); |
268 | return result; |
269 | } |
270 | |
271 | EncodedJSValue jsSVGFETurbulenceElementStitchTiles(ExecState* state, EncodedJSValue thisValue, PropertyName) |
272 | { |
273 | return IDLAttribute<JSSVGFETurbulenceElement>::get<jsSVGFETurbulenceElementStitchTilesGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "stitchTiles" ); |
274 | } |
275 | |
276 | static inline JSValue jsSVGFETurbulenceElementTypeGetter(ExecState& state, JSSVGFETurbulenceElement& thisObject, ThrowScope& throwScope) |
277 | { |
278 | UNUSED_PARAM(throwScope); |
279 | UNUSED_PARAM(state); |
280 | auto& impl = thisObject.wrapped(); |
281 | JSValue result = toJS<IDLInterface<SVGAnimatedEnumeration>>(state, *thisObject.globalObject(), throwScope, impl.typeAnimated()); |
282 | return result; |
283 | } |
284 | |
285 | EncodedJSValue jsSVGFETurbulenceElementType(ExecState* state, EncodedJSValue thisValue, PropertyName) |
286 | { |
287 | return IDLAttribute<JSSVGFETurbulenceElement>::get<jsSVGFETurbulenceElementTypeGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "type" ); |
288 | } |
289 | |
290 | static inline JSValue jsSVGFETurbulenceElementXGetter(ExecState& state, JSSVGFETurbulenceElement& thisObject, ThrowScope& throwScope) |
291 | { |
292 | UNUSED_PARAM(throwScope); |
293 | UNUSED_PARAM(state); |
294 | auto& impl = thisObject.wrapped(); |
295 | JSValue result = toJS<IDLInterface<SVGAnimatedLength>>(state, *thisObject.globalObject(), throwScope, impl.xAnimated()); |
296 | return result; |
297 | } |
298 | |
299 | EncodedJSValue jsSVGFETurbulenceElementX(ExecState* state, EncodedJSValue thisValue, PropertyName) |
300 | { |
301 | return IDLAttribute<JSSVGFETurbulenceElement>::get<jsSVGFETurbulenceElementXGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "x" ); |
302 | } |
303 | |
304 | static inline JSValue jsSVGFETurbulenceElementYGetter(ExecState& state, JSSVGFETurbulenceElement& thisObject, ThrowScope& throwScope) |
305 | { |
306 | UNUSED_PARAM(throwScope); |
307 | UNUSED_PARAM(state); |
308 | auto& impl = thisObject.wrapped(); |
309 | JSValue result = toJS<IDLInterface<SVGAnimatedLength>>(state, *thisObject.globalObject(), throwScope, impl.yAnimated()); |
310 | return result; |
311 | } |
312 | |
313 | EncodedJSValue jsSVGFETurbulenceElementY(ExecState* state, EncodedJSValue thisValue, PropertyName) |
314 | { |
315 | return IDLAttribute<JSSVGFETurbulenceElement>::get<jsSVGFETurbulenceElementYGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "y" ); |
316 | } |
317 | |
318 | static inline JSValue jsSVGFETurbulenceElementWidthGetter(ExecState& state, JSSVGFETurbulenceElement& thisObject, ThrowScope& throwScope) |
319 | { |
320 | UNUSED_PARAM(throwScope); |
321 | UNUSED_PARAM(state); |
322 | auto& impl = thisObject.wrapped(); |
323 | JSValue result = toJS<IDLInterface<SVGAnimatedLength>>(state, *thisObject.globalObject(), throwScope, impl.widthAnimated()); |
324 | return result; |
325 | } |
326 | |
327 | EncodedJSValue jsSVGFETurbulenceElementWidth(ExecState* state, EncodedJSValue thisValue, PropertyName) |
328 | { |
329 | return IDLAttribute<JSSVGFETurbulenceElement>::get<jsSVGFETurbulenceElementWidthGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "width" ); |
330 | } |
331 | |
332 | static inline JSValue jsSVGFETurbulenceElementHeightGetter(ExecState& state, JSSVGFETurbulenceElement& thisObject, ThrowScope& throwScope) |
333 | { |
334 | UNUSED_PARAM(throwScope); |
335 | UNUSED_PARAM(state); |
336 | auto& impl = thisObject.wrapped(); |
337 | JSValue result = toJS<IDLInterface<SVGAnimatedLength>>(state, *thisObject.globalObject(), throwScope, impl.heightAnimated()); |
338 | return result; |
339 | } |
340 | |
341 | EncodedJSValue jsSVGFETurbulenceElementHeight(ExecState* state, EncodedJSValue thisValue, PropertyName) |
342 | { |
343 | return IDLAttribute<JSSVGFETurbulenceElement>::get<jsSVGFETurbulenceElementHeightGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "height" ); |
344 | } |
345 | |
346 | static inline JSValue jsSVGFETurbulenceElementResultGetter(ExecState& state, JSSVGFETurbulenceElement& thisObject, ThrowScope& throwScope) |
347 | { |
348 | UNUSED_PARAM(throwScope); |
349 | UNUSED_PARAM(state); |
350 | auto& impl = thisObject.wrapped(); |
351 | JSValue result = toJS<IDLInterface<SVGAnimatedString>>(state, *thisObject.globalObject(), throwScope, impl.resultAnimated()); |
352 | return result; |
353 | } |
354 | |
355 | EncodedJSValue jsSVGFETurbulenceElementResult(ExecState* state, EncodedJSValue thisValue, PropertyName) |
356 | { |
357 | return IDLAttribute<JSSVGFETurbulenceElement>::get<jsSVGFETurbulenceElementResultGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "result" ); |
358 | } |
359 | |
360 | void JSSVGFETurbulenceElement::heapSnapshot(JSCell* cell, HeapSnapshotBuilder& builder) |
361 | { |
362 | auto* thisObject = jsCast<JSSVGFETurbulenceElement*>(cell); |
363 | builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); |
364 | if (thisObject->scriptExecutionContext()) |
365 | builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string()); |
366 | Base::heapSnapshot(cell, builder); |
367 | } |
368 | |
369 | |
370 | } |
371 | |