| 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 "JSSVGPathSegCurvetoCubicRel.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 jsSVGPathSegCurvetoCubicRelConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 44 | bool setJSSVGPathSegCurvetoCubicRelConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 45 | JSC::EncodedJSValue jsSVGPathSegCurvetoCubicRelX(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 46 | bool setJSSVGPathSegCurvetoCubicRelX(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 47 | JSC::EncodedJSValue jsSVGPathSegCurvetoCubicRelY(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 48 | bool setJSSVGPathSegCurvetoCubicRelY(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 49 | JSC::EncodedJSValue jsSVGPathSegCurvetoCubicRelX1(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 50 | bool setJSSVGPathSegCurvetoCubicRelX1(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 51 | JSC::EncodedJSValue jsSVGPathSegCurvetoCubicRelY1(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 52 | bool setJSSVGPathSegCurvetoCubicRelY1(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 53 | JSC::EncodedJSValue jsSVGPathSegCurvetoCubicRelX2(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 54 | bool setJSSVGPathSegCurvetoCubicRelX2(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 55 | JSC::EncodedJSValue jsSVGPathSegCurvetoCubicRelY2(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 56 | bool setJSSVGPathSegCurvetoCubicRelY2(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 57 | |
| 58 | class JSSVGPathSegCurvetoCubicRelPrototype : public JSC::JSNonFinalObject { |
| 59 | public: |
| 60 | using Base = JSC::JSNonFinalObject; |
| 61 | static JSSVGPathSegCurvetoCubicRelPrototype* create(JSC::VM& vm, JSDOMGlobalObject* globalObject, JSC::Structure* structure) |
| 62 | { |
| 63 | JSSVGPathSegCurvetoCubicRelPrototype* ptr = new (NotNull, JSC::allocateCell<JSSVGPathSegCurvetoCubicRelPrototype>(vm.heap)) JSSVGPathSegCurvetoCubicRelPrototype(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 | JSSVGPathSegCurvetoCubicRelPrototype(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 JSSVGPathSegCurvetoCubicRelConstructor = JSDOMConstructorNotConstructable<JSSVGPathSegCurvetoCubicRel>; |
| 84 | |
| 85 | template<> JSValue JSSVGPathSegCurvetoCubicRelConstructor::prototypeForStructure(JSC::VM& vm, const JSDOMGlobalObject& globalObject) |
| 86 | { |
| 87 | return JSSVGPathSeg::getConstructor(vm, &globalObject); |
| 88 | } |
| 89 | |
| 90 | template<> void JSSVGPathSegCurvetoCubicRelConstructor::initializeProperties(VM& vm, JSDOMGlobalObject& globalObject) |
| 91 | { |
| 92 | putDirect(vm, vm.propertyNames->prototype, JSSVGPathSegCurvetoCubicRel::prototype(vm, globalObject), JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum); |
| 93 | putDirect(vm, vm.propertyNames->name, jsNontrivialString(&vm, String("SVGPathSegCurvetoCubicRel"_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 JSSVGPathSegCurvetoCubicRelConstructor::s_info = { "SVGPathSegCurvetoCubicRel" , &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSSVGPathSegCurvetoCubicRelConstructor) }; |
| 98 | |
| 99 | /* Hash table for prototype */ |
| 100 | |
| 101 | static const HashTableValue JSSVGPathSegCurvetoCubicRelPrototypeTableValues[] = |
| 102 | { |
| 103 | { "constructor" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPathSegCurvetoCubicRelConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSSVGPathSegCurvetoCubicRelConstructor) } }, |
| 104 | { "x" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPathSegCurvetoCubicRelX), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSSVGPathSegCurvetoCubicRelX) } }, |
| 105 | { "y" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPathSegCurvetoCubicRelY), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSSVGPathSegCurvetoCubicRelY) } }, |
| 106 | { "x1" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPathSegCurvetoCubicRelX1), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSSVGPathSegCurvetoCubicRelX1) } }, |
| 107 | { "y1" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPathSegCurvetoCubicRelY1), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSSVGPathSegCurvetoCubicRelY1) } }, |
| 108 | { "x2" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPathSegCurvetoCubicRelX2), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSSVGPathSegCurvetoCubicRelX2) } }, |
| 109 | { "y2" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPathSegCurvetoCubicRelY2), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSSVGPathSegCurvetoCubicRelY2) } }, |
| 110 | }; |
| 111 | |
| 112 | const ClassInfo JSSVGPathSegCurvetoCubicRelPrototype::s_info = { "SVGPathSegCurvetoCubicRelPrototype" , &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSSVGPathSegCurvetoCubicRelPrototype) }; |
| 113 | |
| 114 | void JSSVGPathSegCurvetoCubicRelPrototype::finishCreation(VM& vm) |
| 115 | { |
| 116 | Base::finishCreation(vm); |
| 117 | reifyStaticProperties(vm, JSSVGPathSegCurvetoCubicRel::info(), JSSVGPathSegCurvetoCubicRelPrototypeTableValues, *this); |
| 118 | } |
| 119 | |
| 120 | const ClassInfo JSSVGPathSegCurvetoCubicRel::s_info = { "SVGPathSegCurvetoCubicRel" , &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSSVGPathSegCurvetoCubicRel) }; |
| 121 | |
| 122 | JSSVGPathSegCurvetoCubicRel::JSSVGPathSegCurvetoCubicRel(Structure* structure, JSDOMGlobalObject& globalObject, Ref<SVGPathSegCurvetoCubicRel>&& impl) |
| 123 | : JSSVGPathSeg(structure, globalObject, WTFMove(impl)) |
| 124 | { |
| 125 | } |
| 126 | |
| 127 | void JSSVGPathSegCurvetoCubicRel::finishCreation(VM& vm) |
| 128 | { |
| 129 | Base::finishCreation(vm); |
| 130 | ASSERT(inherits(vm, info())); |
| 131 | |
| 132 | } |
| 133 | |
| 134 | JSObject* JSSVGPathSegCurvetoCubicRel::createPrototype(VM& vm, JSDOMGlobalObject& globalObject) |
| 135 | { |
| 136 | return JSSVGPathSegCurvetoCubicRelPrototype::create(vm, &globalObject, JSSVGPathSegCurvetoCubicRelPrototype::createStructure(vm, &globalObject, JSSVGPathSeg::prototype(vm, globalObject))); |
| 137 | } |
| 138 | |
| 139 | JSObject* JSSVGPathSegCurvetoCubicRel::prototype(VM& vm, JSDOMGlobalObject& globalObject) |
| 140 | { |
| 141 | return getDOMPrototype<JSSVGPathSegCurvetoCubicRel>(vm, globalObject); |
| 142 | } |
| 143 | |
| 144 | JSValue JSSVGPathSegCurvetoCubicRel::getConstructor(VM& vm, const JSGlobalObject* globalObject) |
| 145 | { |
| 146 | return getDOMConstructor<JSSVGPathSegCurvetoCubicRelConstructor>(vm, *jsCast<const JSDOMGlobalObject*>(globalObject)); |
| 147 | } |
| 148 | |
| 149 | template<> inline JSSVGPathSegCurvetoCubicRel* IDLAttribute<JSSVGPathSegCurvetoCubicRel>::cast(ExecState& state, EncodedJSValue thisValue) |
| 150 | { |
| 151 | return jsDynamicCast<JSSVGPathSegCurvetoCubicRel*>(state.vm(), JSValue::decode(thisValue)); |
| 152 | } |
| 153 | |
| 154 | EncodedJSValue jsSVGPathSegCurvetoCubicRelConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 155 | { |
| 156 | VM& vm = state->vm(); |
| 157 | auto throwScope = DECLARE_THROW_SCOPE(vm); |
| 158 | auto* prototype = jsDynamicCast<JSSVGPathSegCurvetoCubicRelPrototype*>(vm, JSValue::decode(thisValue)); |
| 159 | if (UNLIKELY(!prototype)) |
| 160 | return throwVMTypeError(state, throwScope); |
| 161 | return JSValue::encode(JSSVGPathSegCurvetoCubicRel::getConstructor(state->vm(), prototype->globalObject())); |
| 162 | } |
| 163 | |
| 164 | bool setJSSVGPathSegCurvetoCubicRelConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 165 | { |
| 166 | VM& vm = state->vm(); |
| 167 | auto throwScope = DECLARE_THROW_SCOPE(vm); |
| 168 | auto* prototype = jsDynamicCast<JSSVGPathSegCurvetoCubicRelPrototype*>(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 jsSVGPathSegCurvetoCubicRelXGetter(ExecState& state, JSSVGPathSegCurvetoCubicRel& 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 jsSVGPathSegCurvetoCubicRelX(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 187 | { |
| 188 | return IDLAttribute<JSSVGPathSegCurvetoCubicRel>::get<jsSVGPathSegCurvetoCubicRelXGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "x" ); |
| 189 | } |
| 190 | |
| 191 | static inline bool setJSSVGPathSegCurvetoCubicRelXSetter(ExecState& state, JSSVGPathSegCurvetoCubicRel& 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 setJSSVGPathSegCurvetoCubicRelX(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 204 | { |
| 205 | return IDLAttribute<JSSVGPathSegCurvetoCubicRel>::set<setJSSVGPathSegCurvetoCubicRelXSetter>(*state, thisValue, encodedValue, "x" ); |
| 206 | } |
| 207 | |
| 208 | static inline JSValue jsSVGPathSegCurvetoCubicRelYGetter(ExecState& state, JSSVGPathSegCurvetoCubicRel& 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 jsSVGPathSegCurvetoCubicRelY(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 218 | { |
| 219 | return IDLAttribute<JSSVGPathSegCurvetoCubicRel>::get<jsSVGPathSegCurvetoCubicRelYGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "y" ); |
| 220 | } |
| 221 | |
| 222 | static inline bool setJSSVGPathSegCurvetoCubicRelYSetter(ExecState& state, JSSVGPathSegCurvetoCubicRel& 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 setJSSVGPathSegCurvetoCubicRelY(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 235 | { |
| 236 | return IDLAttribute<JSSVGPathSegCurvetoCubicRel>::set<setJSSVGPathSegCurvetoCubicRelYSetter>(*state, thisValue, encodedValue, "y" ); |
| 237 | } |
| 238 | |
| 239 | static inline JSValue jsSVGPathSegCurvetoCubicRelX1Getter(ExecState& state, JSSVGPathSegCurvetoCubicRel& 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 jsSVGPathSegCurvetoCubicRelX1(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 249 | { |
| 250 | return IDLAttribute<JSSVGPathSegCurvetoCubicRel>::get<jsSVGPathSegCurvetoCubicRelX1Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "x1" ); |
| 251 | } |
| 252 | |
| 253 | static inline bool setJSSVGPathSegCurvetoCubicRelX1Setter(ExecState& state, JSSVGPathSegCurvetoCubicRel& 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 setJSSVGPathSegCurvetoCubicRelX1(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 266 | { |
| 267 | return IDLAttribute<JSSVGPathSegCurvetoCubicRel>::set<setJSSVGPathSegCurvetoCubicRelX1Setter>(*state, thisValue, encodedValue, "x1" ); |
| 268 | } |
| 269 | |
| 270 | static inline JSValue jsSVGPathSegCurvetoCubicRelY1Getter(ExecState& state, JSSVGPathSegCurvetoCubicRel& 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 jsSVGPathSegCurvetoCubicRelY1(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 280 | { |
| 281 | return IDLAttribute<JSSVGPathSegCurvetoCubicRel>::get<jsSVGPathSegCurvetoCubicRelY1Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "y1" ); |
| 282 | } |
| 283 | |
| 284 | static inline bool setJSSVGPathSegCurvetoCubicRelY1Setter(ExecState& state, JSSVGPathSegCurvetoCubicRel& 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 setJSSVGPathSegCurvetoCubicRelY1(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 297 | { |
| 298 | return IDLAttribute<JSSVGPathSegCurvetoCubicRel>::set<setJSSVGPathSegCurvetoCubicRelY1Setter>(*state, thisValue, encodedValue, "y1" ); |
| 299 | } |
| 300 | |
| 301 | static inline JSValue jsSVGPathSegCurvetoCubicRelX2Getter(ExecState& state, JSSVGPathSegCurvetoCubicRel& 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 jsSVGPathSegCurvetoCubicRelX2(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 311 | { |
| 312 | return IDLAttribute<JSSVGPathSegCurvetoCubicRel>::get<jsSVGPathSegCurvetoCubicRelX2Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "x2" ); |
| 313 | } |
| 314 | |
| 315 | static inline bool setJSSVGPathSegCurvetoCubicRelX2Setter(ExecState& state, JSSVGPathSegCurvetoCubicRel& 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 setJSSVGPathSegCurvetoCubicRelX2(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 328 | { |
| 329 | return IDLAttribute<JSSVGPathSegCurvetoCubicRel>::set<setJSSVGPathSegCurvetoCubicRelX2Setter>(*state, thisValue, encodedValue, "x2" ); |
| 330 | } |
| 331 | |
| 332 | static inline JSValue jsSVGPathSegCurvetoCubicRelY2Getter(ExecState& state, JSSVGPathSegCurvetoCubicRel& 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 jsSVGPathSegCurvetoCubicRelY2(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 342 | { |
| 343 | return IDLAttribute<JSSVGPathSegCurvetoCubicRel>::get<jsSVGPathSegCurvetoCubicRelY2Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "y2" ); |
| 344 | } |
| 345 | |
| 346 | static inline bool setJSSVGPathSegCurvetoCubicRelY2Setter(ExecState& state, JSSVGPathSegCurvetoCubicRel& 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 setJSSVGPathSegCurvetoCubicRelY2(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 359 | { |
| 360 | return IDLAttribute<JSSVGPathSegCurvetoCubicRel>::set<setJSSVGPathSegCurvetoCubicRelY2Setter>(*state, thisValue, encodedValue, "y2" ); |
| 361 | } |
| 362 | |
| 363 | void JSSVGPathSegCurvetoCubicRel::heapSnapshot(JSCell* cell, HeapSnapshotBuilder& builder) |
| 364 | { |
| 365 | auto* thisObject = jsCast<JSSVGPathSegCurvetoCubicRel*>(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 | |