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 "JSSVGPathSegArcAbs.h"
23
24#include "JSDOMAttribute.h"
25#include "JSDOMBinding.h"
26#include "JSDOMConstructorNotConstructable.h"
27#include "JSDOMConvertBoolean.h"
28#include "JSDOMConvertNumbers.h"
29#include "JSDOMExceptionHandling.h"
30#include "JSDOMWrapperCache.h"
31#include "ScriptExecutionContext.h"
32#include <JavaScriptCore/HeapSnapshotBuilder.h>
33#include <JavaScriptCore/JSCInlines.h>
34#include <wtf/GetPtr.h>
35#include <wtf/PointerPreparations.h>
36#include <wtf/URL.h>
37
38
39namespace WebCore {
40using namespace JSC;
41
42// Attributes
43
44JSC::EncodedJSValue jsSVGPathSegArcAbsConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
45bool setJSSVGPathSegArcAbsConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
46JSC::EncodedJSValue jsSVGPathSegArcAbsX(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
47bool setJSSVGPathSegArcAbsX(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
48JSC::EncodedJSValue jsSVGPathSegArcAbsY(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
49bool setJSSVGPathSegArcAbsY(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
50JSC::EncodedJSValue jsSVGPathSegArcAbsR1(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
51bool setJSSVGPathSegArcAbsR1(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
52JSC::EncodedJSValue jsSVGPathSegArcAbsR2(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
53bool setJSSVGPathSegArcAbsR2(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
54JSC::EncodedJSValue jsSVGPathSegArcAbsAngle(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
55bool setJSSVGPathSegArcAbsAngle(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
56JSC::EncodedJSValue jsSVGPathSegArcAbsLargeArcFlag(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
57bool setJSSVGPathSegArcAbsLargeArcFlag(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
58JSC::EncodedJSValue jsSVGPathSegArcAbsSweepFlag(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
59bool setJSSVGPathSegArcAbsSweepFlag(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
60
61class JSSVGPathSegArcAbsPrototype : public JSC::JSNonFinalObject {
62public:
63 using Base = JSC::JSNonFinalObject;
64 static JSSVGPathSegArcAbsPrototype* create(JSC::VM& vm, JSDOMGlobalObject* globalObject, JSC::Structure* structure)
65 {
66 JSSVGPathSegArcAbsPrototype* ptr = new (NotNull, JSC::allocateCell<JSSVGPathSegArcAbsPrototype>(vm.heap)) JSSVGPathSegArcAbsPrototype(vm, globalObject, structure);
67 ptr->finishCreation(vm);
68 return ptr;
69 }
70
71 DECLARE_INFO;
72 static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
73 {
74 return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
75 }
76
77private:
78 JSSVGPathSegArcAbsPrototype(JSC::VM& vm, JSC::JSGlobalObject*, JSC::Structure* structure)
79 : JSC::JSNonFinalObject(vm, structure)
80 {
81 }
82
83 void finishCreation(JSC::VM&);
84};
85
86using JSSVGPathSegArcAbsConstructor = JSDOMConstructorNotConstructable<JSSVGPathSegArcAbs>;
87
88template<> JSValue JSSVGPathSegArcAbsConstructor::prototypeForStructure(JSC::VM& vm, const JSDOMGlobalObject& globalObject)
89{
90 return JSSVGPathSeg::getConstructor(vm, &globalObject);
91}
92
93template<> void JSSVGPathSegArcAbsConstructor::initializeProperties(VM& vm, JSDOMGlobalObject& globalObject)
94{
95 putDirect(vm, vm.propertyNames->prototype, JSSVGPathSegArcAbs::prototype(vm, globalObject), JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum);
96 putDirect(vm, vm.propertyNames->name, jsNontrivialString(&vm, String("SVGPathSegArcAbs"_s)), JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum);
97 putDirect(vm, vm.propertyNames->length, jsNumber(0), JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum);
98}
99
100template<> const ClassInfo JSSVGPathSegArcAbsConstructor::s_info = { "SVGPathSegArcAbs", &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSSVGPathSegArcAbsConstructor) };
101
102/* Hash table for prototype */
103
104static const HashTableValue JSSVGPathSegArcAbsPrototypeTableValues[] =
105{
106 { "constructor", static_cast<unsigned>(JSC::PropertyAttribute::DontEnum), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPathSegArcAbsConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSSVGPathSegArcAbsConstructor) } },
107 { "x", static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPathSegArcAbsX), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSSVGPathSegArcAbsX) } },
108 { "y", static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPathSegArcAbsY), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSSVGPathSegArcAbsY) } },
109 { "r1", static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPathSegArcAbsR1), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSSVGPathSegArcAbsR1) } },
110 { "r2", static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPathSegArcAbsR2), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSSVGPathSegArcAbsR2) } },
111 { "angle", static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPathSegArcAbsAngle), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSSVGPathSegArcAbsAngle) } },
112 { "largeArcFlag", static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPathSegArcAbsLargeArcFlag), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSSVGPathSegArcAbsLargeArcFlag) } },
113 { "sweepFlag", static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPathSegArcAbsSweepFlag), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSSVGPathSegArcAbsSweepFlag) } },
114};
115
116const ClassInfo JSSVGPathSegArcAbsPrototype::s_info = { "SVGPathSegArcAbsPrototype", &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSSVGPathSegArcAbsPrototype) };
117
118void JSSVGPathSegArcAbsPrototype::finishCreation(VM& vm)
119{
120 Base::finishCreation(vm);
121 reifyStaticProperties(vm, JSSVGPathSegArcAbs::info(), JSSVGPathSegArcAbsPrototypeTableValues, *this);
122}
123
124const ClassInfo JSSVGPathSegArcAbs::s_info = { "SVGPathSegArcAbs", &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSSVGPathSegArcAbs) };
125
126JSSVGPathSegArcAbs::JSSVGPathSegArcAbs(Structure* structure, JSDOMGlobalObject& globalObject, Ref<SVGPathSegArcAbs>&& impl)
127 : JSSVGPathSeg(structure, globalObject, WTFMove(impl))
128{
129}
130
131void JSSVGPathSegArcAbs::finishCreation(VM& vm)
132{
133 Base::finishCreation(vm);
134 ASSERT(inherits(vm, info()));
135
136}
137
138JSObject* JSSVGPathSegArcAbs::createPrototype(VM& vm, JSDOMGlobalObject& globalObject)
139{
140 return JSSVGPathSegArcAbsPrototype::create(vm, &globalObject, JSSVGPathSegArcAbsPrototype::createStructure(vm, &globalObject, JSSVGPathSeg::prototype(vm, globalObject)));
141}
142
143JSObject* JSSVGPathSegArcAbs::prototype(VM& vm, JSDOMGlobalObject& globalObject)
144{
145 return getDOMPrototype<JSSVGPathSegArcAbs>(vm, globalObject);
146}
147
148JSValue JSSVGPathSegArcAbs::getConstructor(VM& vm, const JSGlobalObject* globalObject)
149{
150 return getDOMConstructor<JSSVGPathSegArcAbsConstructor>(vm, *jsCast<const JSDOMGlobalObject*>(globalObject));
151}
152
153template<> inline JSSVGPathSegArcAbs* IDLAttribute<JSSVGPathSegArcAbs>::cast(ExecState& state, EncodedJSValue thisValue)
154{
155 return jsDynamicCast<JSSVGPathSegArcAbs*>(state.vm(), JSValue::decode(thisValue));
156}
157
158EncodedJSValue jsSVGPathSegArcAbsConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName)
159{
160 VM& vm = state->vm();
161 auto throwScope = DECLARE_THROW_SCOPE(vm);
162 auto* prototype = jsDynamicCast<JSSVGPathSegArcAbsPrototype*>(vm, JSValue::decode(thisValue));
163 if (UNLIKELY(!prototype))
164 return throwVMTypeError(state, throwScope);
165 return JSValue::encode(JSSVGPathSegArcAbs::getConstructor(state->vm(), prototype->globalObject()));
166}
167
168bool setJSSVGPathSegArcAbsConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
169{
170 VM& vm = state->vm();
171 auto throwScope = DECLARE_THROW_SCOPE(vm);
172 auto* prototype = jsDynamicCast<JSSVGPathSegArcAbsPrototype*>(vm, JSValue::decode(thisValue));
173 if (UNLIKELY(!prototype)) {
174 throwVMTypeError(state, throwScope);
175 return false;
176 }
177 // Shadowing a built-in constructor
178 return prototype->putDirect(vm, vm.propertyNames->constructor, JSValue::decode(encodedValue));
179}
180
181static inline JSValue jsSVGPathSegArcAbsXGetter(ExecState& state, JSSVGPathSegArcAbs& thisObject, ThrowScope& throwScope)
182{
183 UNUSED_PARAM(throwScope);
184 UNUSED_PARAM(state);
185 auto& impl = thisObject.wrapped();
186 JSValue result = toJS<IDLUnrestrictedFloat>(state, throwScope, impl.x());
187 return result;
188}
189
190EncodedJSValue jsSVGPathSegArcAbsX(ExecState* state, EncodedJSValue thisValue, PropertyName)
191{
192 return IDLAttribute<JSSVGPathSegArcAbs>::get<jsSVGPathSegArcAbsXGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "x");
193}
194
195static inline bool setJSSVGPathSegArcAbsXSetter(ExecState& state, JSSVGPathSegArcAbs& thisObject, JSValue value, ThrowScope& throwScope)
196{
197 UNUSED_PARAM(throwScope);
198 auto& impl = thisObject.wrapped();
199 auto nativeValue = convert<IDLUnrestrictedFloat>(state, value);
200 RETURN_IF_EXCEPTION(throwScope, false);
201 AttributeSetter::call(state, throwScope, [&] {
202 return impl.setX(WTFMove(nativeValue));
203 });
204 return true;
205}
206
207bool setJSSVGPathSegArcAbsX(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
208{
209 return IDLAttribute<JSSVGPathSegArcAbs>::set<setJSSVGPathSegArcAbsXSetter>(*state, thisValue, encodedValue, "x");
210}
211
212static inline JSValue jsSVGPathSegArcAbsYGetter(ExecState& state, JSSVGPathSegArcAbs& thisObject, ThrowScope& throwScope)
213{
214 UNUSED_PARAM(throwScope);
215 UNUSED_PARAM(state);
216 auto& impl = thisObject.wrapped();
217 JSValue result = toJS<IDLUnrestrictedFloat>(state, throwScope, impl.y());
218 return result;
219}
220
221EncodedJSValue jsSVGPathSegArcAbsY(ExecState* state, EncodedJSValue thisValue, PropertyName)
222{
223 return IDLAttribute<JSSVGPathSegArcAbs>::get<jsSVGPathSegArcAbsYGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "y");
224}
225
226static inline bool setJSSVGPathSegArcAbsYSetter(ExecState& state, JSSVGPathSegArcAbs& thisObject, JSValue value, ThrowScope& throwScope)
227{
228 UNUSED_PARAM(throwScope);
229 auto& impl = thisObject.wrapped();
230 auto nativeValue = convert<IDLUnrestrictedFloat>(state, value);
231 RETURN_IF_EXCEPTION(throwScope, false);
232 AttributeSetter::call(state, throwScope, [&] {
233 return impl.setY(WTFMove(nativeValue));
234 });
235 return true;
236}
237
238bool setJSSVGPathSegArcAbsY(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
239{
240 return IDLAttribute<JSSVGPathSegArcAbs>::set<setJSSVGPathSegArcAbsYSetter>(*state, thisValue, encodedValue, "y");
241}
242
243static inline JSValue jsSVGPathSegArcAbsR1Getter(ExecState& state, JSSVGPathSegArcAbs& thisObject, ThrowScope& throwScope)
244{
245 UNUSED_PARAM(throwScope);
246 UNUSED_PARAM(state);
247 auto& impl = thisObject.wrapped();
248 JSValue result = toJS<IDLUnrestrictedFloat>(state, throwScope, impl.r1());
249 return result;
250}
251
252EncodedJSValue jsSVGPathSegArcAbsR1(ExecState* state, EncodedJSValue thisValue, PropertyName)
253{
254 return IDLAttribute<JSSVGPathSegArcAbs>::get<jsSVGPathSegArcAbsR1Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "r1");
255}
256
257static inline bool setJSSVGPathSegArcAbsR1Setter(ExecState& state, JSSVGPathSegArcAbs& thisObject, JSValue value, ThrowScope& throwScope)
258{
259 UNUSED_PARAM(throwScope);
260 auto& impl = thisObject.wrapped();
261 auto nativeValue = convert<IDLUnrestrictedFloat>(state, value);
262 RETURN_IF_EXCEPTION(throwScope, false);
263 AttributeSetter::call(state, throwScope, [&] {
264 return impl.setR1(WTFMove(nativeValue));
265 });
266 return true;
267}
268
269bool setJSSVGPathSegArcAbsR1(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
270{
271 return IDLAttribute<JSSVGPathSegArcAbs>::set<setJSSVGPathSegArcAbsR1Setter>(*state, thisValue, encodedValue, "r1");
272}
273
274static inline JSValue jsSVGPathSegArcAbsR2Getter(ExecState& state, JSSVGPathSegArcAbs& thisObject, ThrowScope& throwScope)
275{
276 UNUSED_PARAM(throwScope);
277 UNUSED_PARAM(state);
278 auto& impl = thisObject.wrapped();
279 JSValue result = toJS<IDLUnrestrictedFloat>(state, throwScope, impl.r2());
280 return result;
281}
282
283EncodedJSValue jsSVGPathSegArcAbsR2(ExecState* state, EncodedJSValue thisValue, PropertyName)
284{
285 return IDLAttribute<JSSVGPathSegArcAbs>::get<jsSVGPathSegArcAbsR2Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "r2");
286}
287
288static inline bool setJSSVGPathSegArcAbsR2Setter(ExecState& state, JSSVGPathSegArcAbs& thisObject, JSValue value, ThrowScope& throwScope)
289{
290 UNUSED_PARAM(throwScope);
291 auto& impl = thisObject.wrapped();
292 auto nativeValue = convert<IDLUnrestrictedFloat>(state, value);
293 RETURN_IF_EXCEPTION(throwScope, false);
294 AttributeSetter::call(state, throwScope, [&] {
295 return impl.setR2(WTFMove(nativeValue));
296 });
297 return true;
298}
299
300bool setJSSVGPathSegArcAbsR2(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
301{
302 return IDLAttribute<JSSVGPathSegArcAbs>::set<setJSSVGPathSegArcAbsR2Setter>(*state, thisValue, encodedValue, "r2");
303}
304
305static inline JSValue jsSVGPathSegArcAbsAngleGetter(ExecState& state, JSSVGPathSegArcAbs& thisObject, ThrowScope& throwScope)
306{
307 UNUSED_PARAM(throwScope);
308 UNUSED_PARAM(state);
309 auto& impl = thisObject.wrapped();
310 JSValue result = toJS<IDLUnrestrictedFloat>(state, throwScope, impl.angle());
311 return result;
312}
313
314EncodedJSValue jsSVGPathSegArcAbsAngle(ExecState* state, EncodedJSValue thisValue, PropertyName)
315{
316 return IDLAttribute<JSSVGPathSegArcAbs>::get<jsSVGPathSegArcAbsAngleGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "angle");
317}
318
319static inline bool setJSSVGPathSegArcAbsAngleSetter(ExecState& state, JSSVGPathSegArcAbs& thisObject, JSValue value, ThrowScope& throwScope)
320{
321 UNUSED_PARAM(throwScope);
322 auto& impl = thisObject.wrapped();
323 auto nativeValue = convert<IDLUnrestrictedFloat>(state, value);
324 RETURN_IF_EXCEPTION(throwScope, false);
325 AttributeSetter::call(state, throwScope, [&] {
326 return impl.setAngle(WTFMove(nativeValue));
327 });
328 return true;
329}
330
331bool setJSSVGPathSegArcAbsAngle(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
332{
333 return IDLAttribute<JSSVGPathSegArcAbs>::set<setJSSVGPathSegArcAbsAngleSetter>(*state, thisValue, encodedValue, "angle");
334}
335
336static inline JSValue jsSVGPathSegArcAbsLargeArcFlagGetter(ExecState& state, JSSVGPathSegArcAbs& thisObject, ThrowScope& throwScope)
337{
338 UNUSED_PARAM(throwScope);
339 UNUSED_PARAM(state);
340 auto& impl = thisObject.wrapped();
341 JSValue result = toJS<IDLBoolean>(state, throwScope, impl.largeArcFlag());
342 return result;
343}
344
345EncodedJSValue jsSVGPathSegArcAbsLargeArcFlag(ExecState* state, EncodedJSValue thisValue, PropertyName)
346{
347 return IDLAttribute<JSSVGPathSegArcAbs>::get<jsSVGPathSegArcAbsLargeArcFlagGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "largeArcFlag");
348}
349
350static inline bool setJSSVGPathSegArcAbsLargeArcFlagSetter(ExecState& state, JSSVGPathSegArcAbs& thisObject, JSValue value, ThrowScope& throwScope)
351{
352 UNUSED_PARAM(throwScope);
353 auto& impl = thisObject.wrapped();
354 auto nativeValue = convert<IDLBoolean>(state, value);
355 RETURN_IF_EXCEPTION(throwScope, false);
356 AttributeSetter::call(state, throwScope, [&] {
357 return impl.setLargeArcFlag(WTFMove(nativeValue));
358 });
359 return true;
360}
361
362bool setJSSVGPathSegArcAbsLargeArcFlag(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
363{
364 return IDLAttribute<JSSVGPathSegArcAbs>::set<setJSSVGPathSegArcAbsLargeArcFlagSetter>(*state, thisValue, encodedValue, "largeArcFlag");
365}
366
367static inline JSValue jsSVGPathSegArcAbsSweepFlagGetter(ExecState& state, JSSVGPathSegArcAbs& thisObject, ThrowScope& throwScope)
368{
369 UNUSED_PARAM(throwScope);
370 UNUSED_PARAM(state);
371 auto& impl = thisObject.wrapped();
372 JSValue result = toJS<IDLBoolean>(state, throwScope, impl.sweepFlag());
373 return result;
374}
375
376EncodedJSValue jsSVGPathSegArcAbsSweepFlag(ExecState* state, EncodedJSValue thisValue, PropertyName)
377{
378 return IDLAttribute<JSSVGPathSegArcAbs>::get<jsSVGPathSegArcAbsSweepFlagGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "sweepFlag");
379}
380
381static inline bool setJSSVGPathSegArcAbsSweepFlagSetter(ExecState& state, JSSVGPathSegArcAbs& thisObject, JSValue value, ThrowScope& throwScope)
382{
383 UNUSED_PARAM(throwScope);
384 auto& impl = thisObject.wrapped();
385 auto nativeValue = convert<IDLBoolean>(state, value);
386 RETURN_IF_EXCEPTION(throwScope, false);
387 AttributeSetter::call(state, throwScope, [&] {
388 return impl.setSweepFlag(WTFMove(nativeValue));
389 });
390 return true;
391}
392
393bool setJSSVGPathSegArcAbsSweepFlag(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
394{
395 return IDLAttribute<JSSVGPathSegArcAbs>::set<setJSSVGPathSegArcAbsSweepFlagSetter>(*state, thisValue, encodedValue, "sweepFlag");
396}
397
398void JSSVGPathSegArcAbs::heapSnapshot(JSCell* cell, HeapSnapshotBuilder& builder)
399{
400 auto* thisObject = jsCast<JSSVGPathSegArcAbs*>(cell);
401 builder.setWrappedObjectForCell(cell, &thisObject->wrapped());
402 if (thisObject->scriptExecutionContext())
403 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());
404 Base::heapSnapshot(cell, builder);
405}
406
407
408}
409