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