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 "JSSVGFECompositeElement.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 "JSSVGAnimatedLength.h"
33#include "JSSVGAnimatedNumber.h"
34#include "JSSVGAnimatedString.h"
35#include "ScriptExecutionContext.h"
36#include <JavaScriptCore/HeapSnapshotBuilder.h>
37#include <JavaScriptCore/JSCInlines.h>
38#include <wtf/GetPtr.h>
39#include <wtf/PointerPreparations.h>
40#include <wtf/URL.h>
41
42
43namespace WebCore {
44using namespace JSC;
45
46// Attributes
47
48JSC::EncodedJSValue jsSVGFECompositeElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
49bool setJSSVGFECompositeElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
50JSC::EncodedJSValue jsSVGFECompositeElementIn1(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
51JSC::EncodedJSValue jsSVGFECompositeElementIn2(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
52JSC::EncodedJSValue jsSVGFECompositeElementOperator(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
53JSC::EncodedJSValue jsSVGFECompositeElementK1(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
54JSC::EncodedJSValue jsSVGFECompositeElementK2(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
55JSC::EncodedJSValue jsSVGFECompositeElementK3(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
56JSC::EncodedJSValue jsSVGFECompositeElementK4(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
57JSC::EncodedJSValue jsSVGFECompositeElementX(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
58JSC::EncodedJSValue jsSVGFECompositeElementY(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
59JSC::EncodedJSValue jsSVGFECompositeElementWidth(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
60JSC::EncodedJSValue jsSVGFECompositeElementHeight(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
61JSC::EncodedJSValue jsSVGFECompositeElementResult(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
62
63class JSSVGFECompositeElementPrototype : public JSC::JSNonFinalObject {
64public:
65 using Base = JSC::JSNonFinalObject;
66 static JSSVGFECompositeElementPrototype* create(JSC::VM& vm, JSDOMGlobalObject* globalObject, JSC::Structure* structure)
67 {
68 JSSVGFECompositeElementPrototype* ptr = new (NotNull, JSC::allocateCell<JSSVGFECompositeElementPrototype>(vm.heap)) JSSVGFECompositeElementPrototype(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
79private:
80 JSSVGFECompositeElementPrototype(JSC::VM& vm, JSC::JSGlobalObject*, JSC::Structure* structure)
81 : JSC::JSNonFinalObject(vm, structure)
82 {
83 }
84
85 void finishCreation(JSC::VM&);
86};
87
88using JSSVGFECompositeElementConstructor = JSDOMConstructorNotConstructable<JSSVGFECompositeElement>;
89
90/* Hash table for constructor */
91
92static const HashTableValue JSSVGFECompositeElementConstructorTableValues[] =
93{
94 { "SVG_FECOMPOSITE_OPERATOR_UNKNOWN", JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0) } },
95 { "SVG_FECOMPOSITE_OPERATOR_OVER", JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(1) } },
96 { "SVG_FECOMPOSITE_OPERATOR_IN", JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(2) } },
97 { "SVG_FECOMPOSITE_OPERATOR_OUT", JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(3) } },
98 { "SVG_FECOMPOSITE_OPERATOR_ATOP", JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(4) } },
99 { "SVG_FECOMPOSITE_OPERATOR_XOR", JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(5) } },
100 { "SVG_FECOMPOSITE_OPERATOR_ARITHMETIC", JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(6) } },
101};
102
103template<> JSValue JSSVGFECompositeElementConstructor::prototypeForStructure(JSC::VM& vm, const JSDOMGlobalObject& globalObject)
104{
105 return JSSVGElement::getConstructor(vm, &globalObject);
106}
107
108template<> void JSSVGFECompositeElementConstructor::initializeProperties(VM& vm, JSDOMGlobalObject& globalObject)
109{
110 putDirect(vm, vm.propertyNames->prototype, JSSVGFECompositeElement::prototype(vm, globalObject), JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum);
111 putDirect(vm, vm.propertyNames->name, jsNontrivialString(&vm, String("SVGFECompositeElement"_s)), JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum);
112 putDirect(vm, vm.propertyNames->length, jsNumber(0), JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum);
113 reifyStaticProperties(vm, JSSVGFECompositeElement::info(), JSSVGFECompositeElementConstructorTableValues, *this);
114}
115
116template<> const ClassInfo JSSVGFECompositeElementConstructor::s_info = { "SVGFECompositeElement", &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSSVGFECompositeElementConstructor) };
117
118/* Hash table for prototype */
119
120static const HashTableValue JSSVGFECompositeElementPrototypeTableValues[] =
121{
122 { "constructor", static_cast<unsigned>(JSC::PropertyAttribute::DontEnum), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFECompositeElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSSVGFECompositeElementConstructor) } },
123 { "in1", static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFECompositeElementIn1), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } },
124 { "in2", static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFECompositeElementIn2), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } },
125 { "operator", static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFECompositeElementOperator), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } },
126 { "k1", static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFECompositeElementK1), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } },
127 { "k2", static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFECompositeElementK2), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } },
128 { "k3", static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFECompositeElementK3), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } },
129 { "k4", static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFECompositeElementK4), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } },
130 { "x", static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFECompositeElementX), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } },
131 { "y", static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFECompositeElementY), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } },
132 { "width", static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFECompositeElementWidth), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } },
133 { "height", static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFECompositeElementHeight), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } },
134 { "result", static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFECompositeElementResult), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } },
135 { "SVG_FECOMPOSITE_OPERATOR_UNKNOWN", JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0) } },
136 { "SVG_FECOMPOSITE_OPERATOR_OVER", JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(1) } },
137 { "SVG_FECOMPOSITE_OPERATOR_IN", JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(2) } },
138 { "SVG_FECOMPOSITE_OPERATOR_OUT", JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(3) } },
139 { "SVG_FECOMPOSITE_OPERATOR_ATOP", JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(4) } },
140 { "SVG_FECOMPOSITE_OPERATOR_XOR", JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(5) } },
141 { "SVG_FECOMPOSITE_OPERATOR_ARITHMETIC", JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(6) } },
142};
143
144const ClassInfo JSSVGFECompositeElementPrototype::s_info = { "SVGFECompositeElementPrototype", &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSSVGFECompositeElementPrototype) };
145
146void JSSVGFECompositeElementPrototype::finishCreation(VM& vm)
147{
148 Base::finishCreation(vm);
149 reifyStaticProperties(vm, JSSVGFECompositeElement::info(), JSSVGFECompositeElementPrototypeTableValues, *this);
150}
151
152const ClassInfo JSSVGFECompositeElement::s_info = { "SVGFECompositeElement", &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSSVGFECompositeElement) };
153
154JSSVGFECompositeElement::JSSVGFECompositeElement(Structure* structure, JSDOMGlobalObject& globalObject, Ref<SVGFECompositeElement>&& impl)
155 : JSSVGElement(structure, globalObject, WTFMove(impl))
156{
157}
158
159void JSSVGFECompositeElement::finishCreation(VM& vm)
160{
161 Base::finishCreation(vm);
162 ASSERT(inherits(vm, info()));
163
164}
165
166JSObject* JSSVGFECompositeElement::createPrototype(VM& vm, JSDOMGlobalObject& globalObject)
167{
168 return JSSVGFECompositeElementPrototype::create(vm, &globalObject, JSSVGFECompositeElementPrototype::createStructure(vm, &globalObject, JSSVGElement::prototype(vm, globalObject)));
169}
170
171JSObject* JSSVGFECompositeElement::prototype(VM& vm, JSDOMGlobalObject& globalObject)
172{
173 return getDOMPrototype<JSSVGFECompositeElement>(vm, globalObject);
174}
175
176JSValue JSSVGFECompositeElement::getConstructor(VM& vm, const JSGlobalObject* globalObject)
177{
178 return getDOMConstructor<JSSVGFECompositeElementConstructor>(vm, *jsCast<const JSDOMGlobalObject*>(globalObject));
179}
180
181template<> inline JSSVGFECompositeElement* IDLAttribute<JSSVGFECompositeElement>::cast(ExecState& state, EncodedJSValue thisValue)
182{
183 return jsDynamicCast<JSSVGFECompositeElement*>(state.vm(), JSValue::decode(thisValue));
184}
185
186EncodedJSValue jsSVGFECompositeElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName)
187{
188 VM& vm = state->vm();
189 auto throwScope = DECLARE_THROW_SCOPE(vm);
190 auto* prototype = jsDynamicCast<JSSVGFECompositeElementPrototype*>(vm, JSValue::decode(thisValue));
191 if (UNLIKELY(!prototype))
192 return throwVMTypeError(state, throwScope);
193 return JSValue::encode(JSSVGFECompositeElement::getConstructor(state->vm(), prototype->globalObject()));
194}
195
196bool setJSSVGFECompositeElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
197{
198 VM& vm = state->vm();
199 auto throwScope = DECLARE_THROW_SCOPE(vm);
200 auto* prototype = jsDynamicCast<JSSVGFECompositeElementPrototype*>(vm, JSValue::decode(thisValue));
201 if (UNLIKELY(!prototype)) {
202 throwVMTypeError(state, throwScope);
203 return false;
204 }
205 // Shadowing a built-in constructor
206 return prototype->putDirect(vm, vm.propertyNames->constructor, JSValue::decode(encodedValue));
207}
208
209static inline JSValue jsSVGFECompositeElementIn1Getter(ExecState& state, JSSVGFECompositeElement& thisObject, ThrowScope& throwScope)
210{
211 UNUSED_PARAM(throwScope);
212 UNUSED_PARAM(state);
213 auto& impl = thisObject.wrapped();
214 JSValue result = toJS<IDLInterface<SVGAnimatedString>>(state, *thisObject.globalObject(), throwScope, impl.in1Animated());
215 return result;
216}
217
218EncodedJSValue jsSVGFECompositeElementIn1(ExecState* state, EncodedJSValue thisValue, PropertyName)
219{
220 return IDLAttribute<JSSVGFECompositeElement>::get<jsSVGFECompositeElementIn1Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "in1");
221}
222
223static inline JSValue jsSVGFECompositeElementIn2Getter(ExecState& state, JSSVGFECompositeElement& thisObject, ThrowScope& throwScope)
224{
225 UNUSED_PARAM(throwScope);
226 UNUSED_PARAM(state);
227 auto& impl = thisObject.wrapped();
228 JSValue result = toJS<IDLInterface<SVGAnimatedString>>(state, *thisObject.globalObject(), throwScope, impl.in2Animated());
229 return result;
230}
231
232EncodedJSValue jsSVGFECompositeElementIn2(ExecState* state, EncodedJSValue thisValue, PropertyName)
233{
234 return IDLAttribute<JSSVGFECompositeElement>::get<jsSVGFECompositeElementIn2Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "in2");
235}
236
237static inline JSValue jsSVGFECompositeElementOperatorGetter(ExecState& state, JSSVGFECompositeElement& thisObject, ThrowScope& throwScope)
238{
239 UNUSED_PARAM(throwScope);
240 UNUSED_PARAM(state);
241 auto& impl = thisObject.wrapped();
242 JSValue result = toJS<IDLInterface<SVGAnimatedEnumeration>>(state, *thisObject.globalObject(), throwScope, impl.svgOperatorAnimated());
243 return result;
244}
245
246EncodedJSValue jsSVGFECompositeElementOperator(ExecState* state, EncodedJSValue thisValue, PropertyName)
247{
248 return IDLAttribute<JSSVGFECompositeElement>::get<jsSVGFECompositeElementOperatorGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "operator");
249}
250
251static inline JSValue jsSVGFECompositeElementK1Getter(ExecState& state, JSSVGFECompositeElement& thisObject, ThrowScope& throwScope)
252{
253 UNUSED_PARAM(throwScope);
254 UNUSED_PARAM(state);
255 auto& impl = thisObject.wrapped();
256 JSValue result = toJS<IDLInterface<SVGAnimatedNumber>>(state, *thisObject.globalObject(), throwScope, impl.k1Animated());
257 return result;
258}
259
260EncodedJSValue jsSVGFECompositeElementK1(ExecState* state, EncodedJSValue thisValue, PropertyName)
261{
262 return IDLAttribute<JSSVGFECompositeElement>::get<jsSVGFECompositeElementK1Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "k1");
263}
264
265static inline JSValue jsSVGFECompositeElementK2Getter(ExecState& state, JSSVGFECompositeElement& thisObject, ThrowScope& throwScope)
266{
267 UNUSED_PARAM(throwScope);
268 UNUSED_PARAM(state);
269 auto& impl = thisObject.wrapped();
270 JSValue result = toJS<IDLInterface<SVGAnimatedNumber>>(state, *thisObject.globalObject(), throwScope, impl.k2Animated());
271 return result;
272}
273
274EncodedJSValue jsSVGFECompositeElementK2(ExecState* state, EncodedJSValue thisValue, PropertyName)
275{
276 return IDLAttribute<JSSVGFECompositeElement>::get<jsSVGFECompositeElementK2Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "k2");
277}
278
279static inline JSValue jsSVGFECompositeElementK3Getter(ExecState& state, JSSVGFECompositeElement& thisObject, ThrowScope& throwScope)
280{
281 UNUSED_PARAM(throwScope);
282 UNUSED_PARAM(state);
283 auto& impl = thisObject.wrapped();
284 JSValue result = toJS<IDLInterface<SVGAnimatedNumber>>(state, *thisObject.globalObject(), throwScope, impl.k3Animated());
285 return result;
286}
287
288EncodedJSValue jsSVGFECompositeElementK3(ExecState* state, EncodedJSValue thisValue, PropertyName)
289{
290 return IDLAttribute<JSSVGFECompositeElement>::get<jsSVGFECompositeElementK3Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "k3");
291}
292
293static inline JSValue jsSVGFECompositeElementK4Getter(ExecState& state, JSSVGFECompositeElement& thisObject, ThrowScope& throwScope)
294{
295 UNUSED_PARAM(throwScope);
296 UNUSED_PARAM(state);
297 auto& impl = thisObject.wrapped();
298 JSValue result = toJS<IDLInterface<SVGAnimatedNumber>>(state, *thisObject.globalObject(), throwScope, impl.k4Animated());
299 return result;
300}
301
302EncodedJSValue jsSVGFECompositeElementK4(ExecState* state, EncodedJSValue thisValue, PropertyName)
303{
304 return IDLAttribute<JSSVGFECompositeElement>::get<jsSVGFECompositeElementK4Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "k4");
305}
306
307static inline JSValue jsSVGFECompositeElementXGetter(ExecState& state, JSSVGFECompositeElement& thisObject, ThrowScope& throwScope)
308{
309 UNUSED_PARAM(throwScope);
310 UNUSED_PARAM(state);
311 auto& impl = thisObject.wrapped();
312 JSValue result = toJS<IDLInterface<SVGAnimatedLength>>(state, *thisObject.globalObject(), throwScope, impl.xAnimated());
313 return result;
314}
315
316EncodedJSValue jsSVGFECompositeElementX(ExecState* state, EncodedJSValue thisValue, PropertyName)
317{
318 return IDLAttribute<JSSVGFECompositeElement>::get<jsSVGFECompositeElementXGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "x");
319}
320
321static inline JSValue jsSVGFECompositeElementYGetter(ExecState& state, JSSVGFECompositeElement& thisObject, ThrowScope& throwScope)
322{
323 UNUSED_PARAM(throwScope);
324 UNUSED_PARAM(state);
325 auto& impl = thisObject.wrapped();
326 JSValue result = toJS<IDLInterface<SVGAnimatedLength>>(state, *thisObject.globalObject(), throwScope, impl.yAnimated());
327 return result;
328}
329
330EncodedJSValue jsSVGFECompositeElementY(ExecState* state, EncodedJSValue thisValue, PropertyName)
331{
332 return IDLAttribute<JSSVGFECompositeElement>::get<jsSVGFECompositeElementYGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "y");
333}
334
335static inline JSValue jsSVGFECompositeElementWidthGetter(ExecState& state, JSSVGFECompositeElement& thisObject, ThrowScope& throwScope)
336{
337 UNUSED_PARAM(throwScope);
338 UNUSED_PARAM(state);
339 auto& impl = thisObject.wrapped();
340 JSValue result = toJS<IDLInterface<SVGAnimatedLength>>(state, *thisObject.globalObject(), throwScope, impl.widthAnimated());
341 return result;
342}
343
344EncodedJSValue jsSVGFECompositeElementWidth(ExecState* state, EncodedJSValue thisValue, PropertyName)
345{
346 return IDLAttribute<JSSVGFECompositeElement>::get<jsSVGFECompositeElementWidthGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "width");
347}
348
349static inline JSValue jsSVGFECompositeElementHeightGetter(ExecState& state, JSSVGFECompositeElement& thisObject, ThrowScope& throwScope)
350{
351 UNUSED_PARAM(throwScope);
352 UNUSED_PARAM(state);
353 auto& impl = thisObject.wrapped();
354 JSValue result = toJS<IDLInterface<SVGAnimatedLength>>(state, *thisObject.globalObject(), throwScope, impl.heightAnimated());
355 return result;
356}
357
358EncodedJSValue jsSVGFECompositeElementHeight(ExecState* state, EncodedJSValue thisValue, PropertyName)
359{
360 return IDLAttribute<JSSVGFECompositeElement>::get<jsSVGFECompositeElementHeightGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "height");
361}
362
363static inline JSValue jsSVGFECompositeElementResultGetter(ExecState& state, JSSVGFECompositeElement& thisObject, ThrowScope& throwScope)
364{
365 UNUSED_PARAM(throwScope);
366 UNUSED_PARAM(state);
367 auto& impl = thisObject.wrapped();
368 JSValue result = toJS<IDLInterface<SVGAnimatedString>>(state, *thisObject.globalObject(), throwScope, impl.resultAnimated());
369 return result;
370}
371
372EncodedJSValue jsSVGFECompositeElementResult(ExecState* state, EncodedJSValue thisValue, PropertyName)
373{
374 return IDLAttribute<JSSVGFECompositeElement>::get<jsSVGFECompositeElementResultGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "result");
375}
376
377void JSSVGFECompositeElement::heapSnapshot(JSCell* cell, HeapSnapshotBuilder& builder)
378{
379 auto* thisObject = jsCast<JSSVGFECompositeElement*>(cell);
380 builder.setWrappedObjectForCell(cell, &thisObject->wrapped());
381 if (thisObject->scriptExecutionContext())
382 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());
383 Base::heapSnapshot(cell, builder);
384}
385
386
387}
388