| 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 "JSSVGFEDropShadowElement.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 "JSSVGAnimatedLength.h" |
| 34 | #include "JSSVGAnimatedNumber.h" |
| 35 | #include "JSSVGAnimatedString.h" |
| 36 | #include "ScriptExecutionContext.h" |
| 37 | #include <JavaScriptCore/HeapSnapshotBuilder.h> |
| 38 | #include <JavaScriptCore/JSCInlines.h> |
| 39 | #include <wtf/GetPtr.h> |
| 40 | #include <wtf/PointerPreparations.h> |
| 41 | #include <wtf/URL.h> |
| 42 | |
| 43 | |
| 44 | namespace WebCore { |
| 45 | using namespace JSC; |
| 46 | |
| 47 | // Functions |
| 48 | |
| 49 | JSC::EncodedJSValue JSC_HOST_CALL jsSVGFEDropShadowElementPrototypeFunctionSetStdDeviation(JSC::ExecState*); |
| 50 | |
| 51 | // Attributes |
| 52 | |
| 53 | JSC::EncodedJSValue jsSVGFEDropShadowElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 54 | bool setJSSVGFEDropShadowElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 55 | JSC::EncodedJSValue jsSVGFEDropShadowElementIn1(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 56 | JSC::EncodedJSValue jsSVGFEDropShadowElementDx(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 57 | JSC::EncodedJSValue jsSVGFEDropShadowElementDy(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 58 | JSC::EncodedJSValue jsSVGFEDropShadowElementStdDeviationX(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 59 | JSC::EncodedJSValue jsSVGFEDropShadowElementStdDeviationY(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 60 | JSC::EncodedJSValue jsSVGFEDropShadowElementX(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 61 | JSC::EncodedJSValue jsSVGFEDropShadowElementY(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 62 | JSC::EncodedJSValue jsSVGFEDropShadowElementWidth(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 63 | JSC::EncodedJSValue jsSVGFEDropShadowElementHeight(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 64 | JSC::EncodedJSValue jsSVGFEDropShadowElementResult(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 65 | |
| 66 | class JSSVGFEDropShadowElementPrototype : public JSC::JSNonFinalObject { |
| 67 | public: |
| 68 | using Base = JSC::JSNonFinalObject; |
| 69 | static JSSVGFEDropShadowElementPrototype* create(JSC::VM& vm, JSDOMGlobalObject* globalObject, JSC::Structure* structure) |
| 70 | { |
| 71 | JSSVGFEDropShadowElementPrototype* ptr = new (NotNull, JSC::allocateCell<JSSVGFEDropShadowElementPrototype>(vm.heap)) JSSVGFEDropShadowElementPrototype(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 | JSSVGFEDropShadowElementPrototype(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 JSSVGFEDropShadowElementConstructor = JSDOMConstructorNotConstructable<JSSVGFEDropShadowElement>; |
| 92 | |
| 93 | template<> JSValue JSSVGFEDropShadowElementConstructor::prototypeForStructure(JSC::VM& vm, const JSDOMGlobalObject& globalObject) |
| 94 | { |
| 95 | return JSSVGElement::getConstructor(vm, &globalObject); |
| 96 | } |
| 97 | |
| 98 | template<> void JSSVGFEDropShadowElementConstructor::initializeProperties(VM& vm, JSDOMGlobalObject& globalObject) |
| 99 | { |
| 100 | putDirect(vm, vm.propertyNames->prototype, JSSVGFEDropShadowElement::prototype(vm, globalObject), JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum); |
| 101 | putDirect(vm, vm.propertyNames->name, jsNontrivialString(&vm, String("SVGFEDropShadowElement"_s )), JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum); |
| 102 | putDirect(vm, vm.propertyNames->length, jsNumber(0), JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum); |
| 103 | } |
| 104 | |
| 105 | template<> const ClassInfo JSSVGFEDropShadowElementConstructor::s_info = { "SVGFEDropShadowElement" , &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSSVGFEDropShadowElementConstructor) }; |
| 106 | |
| 107 | /* Hash table for prototype */ |
| 108 | |
| 109 | static const HashTableValue JSSVGFEDropShadowElementPrototypeTableValues[] = |
| 110 | { |
| 111 | { "constructor" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDropShadowElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSSVGFEDropShadowElementConstructor) } }, |
| 112 | { "in1" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDropShadowElementIn1), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 113 | { "dx" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDropShadowElementDx), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 114 | { "dy" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDropShadowElementDy), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 115 | { "stdDeviationX" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDropShadowElementStdDeviationX), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 116 | { "stdDeviationY" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDropShadowElementStdDeviationY), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 117 | { "x" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDropShadowElementX), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 118 | { "y" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDropShadowElementY), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 119 | { "width" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDropShadowElementWidth), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 120 | { "height" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDropShadowElementHeight), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 121 | { "result" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDropShadowElementResult), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 122 | { "setStdDeviation" , static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsSVGFEDropShadowElementPrototypeFunctionSetStdDeviation), (intptr_t) (0) } }, |
| 123 | }; |
| 124 | |
| 125 | const ClassInfo JSSVGFEDropShadowElementPrototype::s_info = { "SVGFEDropShadowElementPrototype" , &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSSVGFEDropShadowElementPrototype) }; |
| 126 | |
| 127 | void JSSVGFEDropShadowElementPrototype::finishCreation(VM& vm) |
| 128 | { |
| 129 | Base::finishCreation(vm); |
| 130 | reifyStaticProperties(vm, JSSVGFEDropShadowElement::info(), JSSVGFEDropShadowElementPrototypeTableValues, *this); |
| 131 | } |
| 132 | |
| 133 | const ClassInfo JSSVGFEDropShadowElement::s_info = { "SVGFEDropShadowElement" , &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSSVGFEDropShadowElement) }; |
| 134 | |
| 135 | JSSVGFEDropShadowElement::JSSVGFEDropShadowElement(Structure* structure, JSDOMGlobalObject& globalObject, Ref<SVGFEDropShadowElement>&& impl) |
| 136 | : JSSVGElement(structure, globalObject, WTFMove(impl)) |
| 137 | { |
| 138 | } |
| 139 | |
| 140 | void JSSVGFEDropShadowElement::finishCreation(VM& vm) |
| 141 | { |
| 142 | Base::finishCreation(vm); |
| 143 | ASSERT(inherits(vm, info())); |
| 144 | |
| 145 | } |
| 146 | |
| 147 | JSObject* JSSVGFEDropShadowElement::createPrototype(VM& vm, JSDOMGlobalObject& globalObject) |
| 148 | { |
| 149 | return JSSVGFEDropShadowElementPrototype::create(vm, &globalObject, JSSVGFEDropShadowElementPrototype::createStructure(vm, &globalObject, JSSVGElement::prototype(vm, globalObject))); |
| 150 | } |
| 151 | |
| 152 | JSObject* JSSVGFEDropShadowElement::prototype(VM& vm, JSDOMGlobalObject& globalObject) |
| 153 | { |
| 154 | return getDOMPrototype<JSSVGFEDropShadowElement>(vm, globalObject); |
| 155 | } |
| 156 | |
| 157 | JSValue JSSVGFEDropShadowElement::getConstructor(VM& vm, const JSGlobalObject* globalObject) |
| 158 | { |
| 159 | return getDOMConstructor<JSSVGFEDropShadowElementConstructor>(vm, *jsCast<const JSDOMGlobalObject*>(globalObject)); |
| 160 | } |
| 161 | |
| 162 | template<> inline JSSVGFEDropShadowElement* IDLAttribute<JSSVGFEDropShadowElement>::cast(ExecState& state, EncodedJSValue thisValue) |
| 163 | { |
| 164 | return jsDynamicCast<JSSVGFEDropShadowElement*>(state.vm(), JSValue::decode(thisValue)); |
| 165 | } |
| 166 | |
| 167 | template<> inline JSSVGFEDropShadowElement* IDLOperation<JSSVGFEDropShadowElement>::cast(ExecState& state) |
| 168 | { |
| 169 | return jsDynamicCast<JSSVGFEDropShadowElement*>(state.vm(), state.thisValue()); |
| 170 | } |
| 171 | |
| 172 | EncodedJSValue jsSVGFEDropShadowElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 173 | { |
| 174 | VM& vm = state->vm(); |
| 175 | auto throwScope = DECLARE_THROW_SCOPE(vm); |
| 176 | auto* prototype = jsDynamicCast<JSSVGFEDropShadowElementPrototype*>(vm, JSValue::decode(thisValue)); |
| 177 | if (UNLIKELY(!prototype)) |
| 178 | return throwVMTypeError(state, throwScope); |
| 179 | return JSValue::encode(JSSVGFEDropShadowElement::getConstructor(state->vm(), prototype->globalObject())); |
| 180 | } |
| 181 | |
| 182 | bool setJSSVGFEDropShadowElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 183 | { |
| 184 | VM& vm = state->vm(); |
| 185 | auto throwScope = DECLARE_THROW_SCOPE(vm); |
| 186 | auto* prototype = jsDynamicCast<JSSVGFEDropShadowElementPrototype*>(vm, JSValue::decode(thisValue)); |
| 187 | if (UNLIKELY(!prototype)) { |
| 188 | throwVMTypeError(state, throwScope); |
| 189 | return false; |
| 190 | } |
| 191 | // Shadowing a built-in constructor |
| 192 | return prototype->putDirect(vm, vm.propertyNames->constructor, JSValue::decode(encodedValue)); |
| 193 | } |
| 194 | |
| 195 | static inline JSValue jsSVGFEDropShadowElementIn1Getter(ExecState& state, JSSVGFEDropShadowElement& thisObject, ThrowScope& throwScope) |
| 196 | { |
| 197 | UNUSED_PARAM(throwScope); |
| 198 | UNUSED_PARAM(state); |
| 199 | auto& impl = thisObject.wrapped(); |
| 200 | JSValue result = toJS<IDLInterface<SVGAnimatedString>>(state, *thisObject.globalObject(), throwScope, impl.in1Animated()); |
| 201 | return result; |
| 202 | } |
| 203 | |
| 204 | EncodedJSValue jsSVGFEDropShadowElementIn1(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 205 | { |
| 206 | return IDLAttribute<JSSVGFEDropShadowElement>::get<jsSVGFEDropShadowElementIn1Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "in1" ); |
| 207 | } |
| 208 | |
| 209 | static inline JSValue jsSVGFEDropShadowElementDxGetter(ExecState& state, JSSVGFEDropShadowElement& thisObject, ThrowScope& throwScope) |
| 210 | { |
| 211 | UNUSED_PARAM(throwScope); |
| 212 | UNUSED_PARAM(state); |
| 213 | auto& impl = thisObject.wrapped(); |
| 214 | JSValue result = toJS<IDLInterface<SVGAnimatedNumber>>(state, *thisObject.globalObject(), throwScope, impl.dxAnimated()); |
| 215 | return result; |
| 216 | } |
| 217 | |
| 218 | EncodedJSValue jsSVGFEDropShadowElementDx(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 219 | { |
| 220 | return IDLAttribute<JSSVGFEDropShadowElement>::get<jsSVGFEDropShadowElementDxGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "dx" ); |
| 221 | } |
| 222 | |
| 223 | static inline JSValue jsSVGFEDropShadowElementDyGetter(ExecState& state, JSSVGFEDropShadowElement& thisObject, ThrowScope& throwScope) |
| 224 | { |
| 225 | UNUSED_PARAM(throwScope); |
| 226 | UNUSED_PARAM(state); |
| 227 | auto& impl = thisObject.wrapped(); |
| 228 | JSValue result = toJS<IDLInterface<SVGAnimatedNumber>>(state, *thisObject.globalObject(), throwScope, impl.dyAnimated()); |
| 229 | return result; |
| 230 | } |
| 231 | |
| 232 | EncodedJSValue jsSVGFEDropShadowElementDy(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 233 | { |
| 234 | return IDLAttribute<JSSVGFEDropShadowElement>::get<jsSVGFEDropShadowElementDyGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "dy" ); |
| 235 | } |
| 236 | |
| 237 | static inline JSValue jsSVGFEDropShadowElementStdDeviationXGetter(ExecState& state, JSSVGFEDropShadowElement& thisObject, ThrowScope& throwScope) |
| 238 | { |
| 239 | UNUSED_PARAM(throwScope); |
| 240 | UNUSED_PARAM(state); |
| 241 | auto& impl = thisObject.wrapped(); |
| 242 | JSValue result = toJS<IDLInterface<SVGAnimatedNumber>>(state, *thisObject.globalObject(), throwScope, impl.stdDeviationXAnimated()); |
| 243 | return result; |
| 244 | } |
| 245 | |
| 246 | EncodedJSValue jsSVGFEDropShadowElementStdDeviationX(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 247 | { |
| 248 | return IDLAttribute<JSSVGFEDropShadowElement>::get<jsSVGFEDropShadowElementStdDeviationXGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "stdDeviationX" ); |
| 249 | } |
| 250 | |
| 251 | static inline JSValue jsSVGFEDropShadowElementStdDeviationYGetter(ExecState& state, JSSVGFEDropShadowElement& 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.stdDeviationYAnimated()); |
| 257 | return result; |
| 258 | } |
| 259 | |
| 260 | EncodedJSValue jsSVGFEDropShadowElementStdDeviationY(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 261 | { |
| 262 | return IDLAttribute<JSSVGFEDropShadowElement>::get<jsSVGFEDropShadowElementStdDeviationYGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "stdDeviationY" ); |
| 263 | } |
| 264 | |
| 265 | static inline JSValue jsSVGFEDropShadowElementXGetter(ExecState& state, JSSVGFEDropShadowElement& thisObject, ThrowScope& throwScope) |
| 266 | { |
| 267 | UNUSED_PARAM(throwScope); |
| 268 | UNUSED_PARAM(state); |
| 269 | auto& impl = thisObject.wrapped(); |
| 270 | JSValue result = toJS<IDLInterface<SVGAnimatedLength>>(state, *thisObject.globalObject(), throwScope, impl.xAnimated()); |
| 271 | return result; |
| 272 | } |
| 273 | |
| 274 | EncodedJSValue jsSVGFEDropShadowElementX(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 275 | { |
| 276 | return IDLAttribute<JSSVGFEDropShadowElement>::get<jsSVGFEDropShadowElementXGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "x" ); |
| 277 | } |
| 278 | |
| 279 | static inline JSValue jsSVGFEDropShadowElementYGetter(ExecState& state, JSSVGFEDropShadowElement& thisObject, ThrowScope& throwScope) |
| 280 | { |
| 281 | UNUSED_PARAM(throwScope); |
| 282 | UNUSED_PARAM(state); |
| 283 | auto& impl = thisObject.wrapped(); |
| 284 | JSValue result = toJS<IDLInterface<SVGAnimatedLength>>(state, *thisObject.globalObject(), throwScope, impl.yAnimated()); |
| 285 | return result; |
| 286 | } |
| 287 | |
| 288 | EncodedJSValue jsSVGFEDropShadowElementY(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 289 | { |
| 290 | return IDLAttribute<JSSVGFEDropShadowElement>::get<jsSVGFEDropShadowElementYGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "y" ); |
| 291 | } |
| 292 | |
| 293 | static inline JSValue jsSVGFEDropShadowElementWidthGetter(ExecState& state, JSSVGFEDropShadowElement& thisObject, ThrowScope& throwScope) |
| 294 | { |
| 295 | UNUSED_PARAM(throwScope); |
| 296 | UNUSED_PARAM(state); |
| 297 | auto& impl = thisObject.wrapped(); |
| 298 | JSValue result = toJS<IDLInterface<SVGAnimatedLength>>(state, *thisObject.globalObject(), throwScope, impl.widthAnimated()); |
| 299 | return result; |
| 300 | } |
| 301 | |
| 302 | EncodedJSValue jsSVGFEDropShadowElementWidth(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 303 | { |
| 304 | return IDLAttribute<JSSVGFEDropShadowElement>::get<jsSVGFEDropShadowElementWidthGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "width" ); |
| 305 | } |
| 306 | |
| 307 | static inline JSValue jsSVGFEDropShadowElementHeightGetter(ExecState& state, JSSVGFEDropShadowElement& 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.heightAnimated()); |
| 313 | return result; |
| 314 | } |
| 315 | |
| 316 | EncodedJSValue jsSVGFEDropShadowElementHeight(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 317 | { |
| 318 | return IDLAttribute<JSSVGFEDropShadowElement>::get<jsSVGFEDropShadowElementHeightGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "height" ); |
| 319 | } |
| 320 | |
| 321 | static inline JSValue jsSVGFEDropShadowElementResultGetter(ExecState& state, JSSVGFEDropShadowElement& thisObject, ThrowScope& throwScope) |
| 322 | { |
| 323 | UNUSED_PARAM(throwScope); |
| 324 | UNUSED_PARAM(state); |
| 325 | auto& impl = thisObject.wrapped(); |
| 326 | JSValue result = toJS<IDLInterface<SVGAnimatedString>>(state, *thisObject.globalObject(), throwScope, impl.resultAnimated()); |
| 327 | return result; |
| 328 | } |
| 329 | |
| 330 | EncodedJSValue jsSVGFEDropShadowElementResult(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 331 | { |
| 332 | return IDLAttribute<JSSVGFEDropShadowElement>::get<jsSVGFEDropShadowElementResultGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "result" ); |
| 333 | } |
| 334 | |
| 335 | static inline JSC::EncodedJSValue jsSVGFEDropShadowElementPrototypeFunctionSetStdDeviationBody(JSC::ExecState* state, typename IDLOperation<JSSVGFEDropShadowElement>::ClassParameter castedThis, JSC::ThrowScope& throwScope) |
| 336 | { |
| 337 | UNUSED_PARAM(state); |
| 338 | UNUSED_PARAM(throwScope); |
| 339 | auto& impl = castedThis->wrapped(); |
| 340 | auto stdDeviationX = convert<IDLUnrestrictedFloat>(*state, state->argument(0)); |
| 341 | RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| 342 | auto stdDeviationY = convert<IDLUnrestrictedFloat>(*state, state->argument(1)); |
| 343 | RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| 344 | impl.setStdDeviation(WTFMove(stdDeviationX), WTFMove(stdDeviationY)); |
| 345 | return JSValue::encode(jsUndefined()); |
| 346 | } |
| 347 | |
| 348 | EncodedJSValue JSC_HOST_CALL jsSVGFEDropShadowElementPrototypeFunctionSetStdDeviation(ExecState* state) |
| 349 | { |
| 350 | return IDLOperation<JSSVGFEDropShadowElement>::call<jsSVGFEDropShadowElementPrototypeFunctionSetStdDeviationBody>(*state, "setStdDeviation" ); |
| 351 | } |
| 352 | |
| 353 | void JSSVGFEDropShadowElement::heapSnapshot(JSCell* cell, HeapSnapshotBuilder& builder) |
| 354 | { |
| 355 | auto* thisObject = jsCast<JSSVGFEDropShadowElement*>(cell); |
| 356 | builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); |
| 357 | if (thisObject->scriptExecutionContext()) |
| 358 | builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string()); |
| 359 | Base::heapSnapshot(cell, builder); |
| 360 | } |
| 361 | |
| 362 | |
| 363 | } |
| 364 | |