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