| 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 "JSSVGFEDiffuseLightingElement.h" |
| 23 | |
| 24 | #include "JSDOMAttribute.h" |
| 25 | #include "JSDOMBinding.h" |
| 26 | #include "JSDOMConstructorNotConstructable.h" |
| 27 | #include "JSDOMConvertInterface.h" |
| 28 | #include "JSDOMExceptionHandling.h" |
| 29 | #include "JSDOMGlobalObject.h" |
| 30 | #include "JSDOMWrapperCache.h" |
| 31 | #include "JSSVGAnimatedLength.h" |
| 32 | #include "JSSVGAnimatedNumber.h" |
| 33 | #include "JSSVGAnimatedString.h" |
| 34 | #include "ScriptExecutionContext.h" |
| 35 | #include <JavaScriptCore/HeapSnapshotBuilder.h> |
| 36 | #include <JavaScriptCore/JSCInlines.h> |
| 37 | #include <wtf/GetPtr.h> |
| 38 | #include <wtf/PointerPreparations.h> |
| 39 | #include <wtf/URL.h> |
| 40 | |
| 41 | |
| 42 | namespace WebCore { |
| 43 | using namespace JSC; |
| 44 | |
| 45 | // Attributes |
| 46 | |
| 47 | JSC::EncodedJSValue jsSVGFEDiffuseLightingElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 48 | bool setJSSVGFEDiffuseLightingElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 49 | JSC::EncodedJSValue jsSVGFEDiffuseLightingElementIn1(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 50 | JSC::EncodedJSValue jsSVGFEDiffuseLightingElementSurfaceScale(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 51 | JSC::EncodedJSValue jsSVGFEDiffuseLightingElementDiffuseConstant(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 52 | JSC::EncodedJSValue jsSVGFEDiffuseLightingElementKernelUnitLengthX(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 53 | JSC::EncodedJSValue jsSVGFEDiffuseLightingElementKernelUnitLengthY(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 54 | JSC::EncodedJSValue jsSVGFEDiffuseLightingElementX(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 55 | JSC::EncodedJSValue jsSVGFEDiffuseLightingElementY(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 56 | JSC::EncodedJSValue jsSVGFEDiffuseLightingElementWidth(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 57 | JSC::EncodedJSValue jsSVGFEDiffuseLightingElementHeight(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 58 | JSC::EncodedJSValue jsSVGFEDiffuseLightingElementResult(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 59 | |
| 60 | class JSSVGFEDiffuseLightingElementPrototype : public JSC::JSNonFinalObject { |
| 61 | public: |
| 62 | using Base = JSC::JSNonFinalObject; |
| 63 | static JSSVGFEDiffuseLightingElementPrototype* create(JSC::VM& vm, JSDOMGlobalObject* globalObject, JSC::Structure* structure) |
| 64 | { |
| 65 | JSSVGFEDiffuseLightingElementPrototype* ptr = new (NotNull, JSC::allocateCell<JSSVGFEDiffuseLightingElementPrototype>(vm.heap)) JSSVGFEDiffuseLightingElementPrototype(vm, globalObject, structure); |
| 66 | ptr->finishCreation(vm); |
| 67 | return ptr; |
| 68 | } |
| 69 | |
| 70 | DECLARE_INFO; |
| 71 | static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype) |
| 72 | { |
| 73 | return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info()); |
| 74 | } |
| 75 | |
| 76 | private: |
| 77 | JSSVGFEDiffuseLightingElementPrototype(JSC::VM& vm, JSC::JSGlobalObject*, JSC::Structure* structure) |
| 78 | : JSC::JSNonFinalObject(vm, structure) |
| 79 | { |
| 80 | } |
| 81 | |
| 82 | void finishCreation(JSC::VM&); |
| 83 | }; |
| 84 | |
| 85 | using JSSVGFEDiffuseLightingElementConstructor = JSDOMConstructorNotConstructable<JSSVGFEDiffuseLightingElement>; |
| 86 | |
| 87 | template<> JSValue JSSVGFEDiffuseLightingElementConstructor::prototypeForStructure(JSC::VM& vm, const JSDOMGlobalObject& globalObject) |
| 88 | { |
| 89 | return JSSVGElement::getConstructor(vm, &globalObject); |
| 90 | } |
| 91 | |
| 92 | template<> void JSSVGFEDiffuseLightingElementConstructor::initializeProperties(VM& vm, JSDOMGlobalObject& globalObject) |
| 93 | { |
| 94 | putDirect(vm, vm.propertyNames->prototype, JSSVGFEDiffuseLightingElement::prototype(vm, globalObject), JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum); |
| 95 | putDirect(vm, vm.propertyNames->name, jsNontrivialString(&vm, String("SVGFEDiffuseLightingElement"_s )), JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum); |
| 96 | putDirect(vm, vm.propertyNames->length, jsNumber(0), JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum); |
| 97 | } |
| 98 | |
| 99 | template<> const ClassInfo JSSVGFEDiffuseLightingElementConstructor::s_info = { "SVGFEDiffuseLightingElement" , &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSSVGFEDiffuseLightingElementConstructor) }; |
| 100 | |
| 101 | /* Hash table for prototype */ |
| 102 | |
| 103 | static const HashTableValue JSSVGFEDiffuseLightingElementPrototypeTableValues[] = |
| 104 | { |
| 105 | { "constructor" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDiffuseLightingElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSSVGFEDiffuseLightingElementConstructor) } }, |
| 106 | { "in1" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDiffuseLightingElementIn1), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 107 | { "surfaceScale" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDiffuseLightingElementSurfaceScale), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 108 | { "diffuseConstant" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDiffuseLightingElementDiffuseConstant), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 109 | { "kernelUnitLengthX" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDiffuseLightingElementKernelUnitLengthX), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 110 | { "kernelUnitLengthY" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDiffuseLightingElementKernelUnitLengthY), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 111 | { "x" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDiffuseLightingElementX), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 112 | { "y" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDiffuseLightingElementY), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 113 | { "width" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDiffuseLightingElementWidth), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 114 | { "height" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDiffuseLightingElementHeight), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 115 | { "result" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDiffuseLightingElementResult), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 116 | }; |
| 117 | |
| 118 | const ClassInfo JSSVGFEDiffuseLightingElementPrototype::s_info = { "SVGFEDiffuseLightingElementPrototype" , &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSSVGFEDiffuseLightingElementPrototype) }; |
| 119 | |
| 120 | void JSSVGFEDiffuseLightingElementPrototype::finishCreation(VM& vm) |
| 121 | { |
| 122 | Base::finishCreation(vm); |
| 123 | reifyStaticProperties(vm, JSSVGFEDiffuseLightingElement::info(), JSSVGFEDiffuseLightingElementPrototypeTableValues, *this); |
| 124 | } |
| 125 | |
| 126 | const ClassInfo JSSVGFEDiffuseLightingElement::s_info = { "SVGFEDiffuseLightingElement" , &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSSVGFEDiffuseLightingElement) }; |
| 127 | |
| 128 | JSSVGFEDiffuseLightingElement::JSSVGFEDiffuseLightingElement(Structure* structure, JSDOMGlobalObject& globalObject, Ref<SVGFEDiffuseLightingElement>&& impl) |
| 129 | : JSSVGElement(structure, globalObject, WTFMove(impl)) |
| 130 | { |
| 131 | } |
| 132 | |
| 133 | void JSSVGFEDiffuseLightingElement::finishCreation(VM& vm) |
| 134 | { |
| 135 | Base::finishCreation(vm); |
| 136 | ASSERT(inherits(vm, info())); |
| 137 | |
| 138 | } |
| 139 | |
| 140 | JSObject* JSSVGFEDiffuseLightingElement::createPrototype(VM& vm, JSDOMGlobalObject& globalObject) |
| 141 | { |
| 142 | return JSSVGFEDiffuseLightingElementPrototype::create(vm, &globalObject, JSSVGFEDiffuseLightingElementPrototype::createStructure(vm, &globalObject, JSSVGElement::prototype(vm, globalObject))); |
| 143 | } |
| 144 | |
| 145 | JSObject* JSSVGFEDiffuseLightingElement::prototype(VM& vm, JSDOMGlobalObject& globalObject) |
| 146 | { |
| 147 | return getDOMPrototype<JSSVGFEDiffuseLightingElement>(vm, globalObject); |
| 148 | } |
| 149 | |
| 150 | JSValue JSSVGFEDiffuseLightingElement::getConstructor(VM& vm, const JSGlobalObject* globalObject) |
| 151 | { |
| 152 | return getDOMConstructor<JSSVGFEDiffuseLightingElementConstructor>(vm, *jsCast<const JSDOMGlobalObject*>(globalObject)); |
| 153 | } |
| 154 | |
| 155 | template<> inline JSSVGFEDiffuseLightingElement* IDLAttribute<JSSVGFEDiffuseLightingElement>::cast(ExecState& state, EncodedJSValue thisValue) |
| 156 | { |
| 157 | return jsDynamicCast<JSSVGFEDiffuseLightingElement*>(state.vm(), JSValue::decode(thisValue)); |
| 158 | } |
| 159 | |
| 160 | EncodedJSValue jsSVGFEDiffuseLightingElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 161 | { |
| 162 | VM& vm = state->vm(); |
| 163 | auto throwScope = DECLARE_THROW_SCOPE(vm); |
| 164 | auto* prototype = jsDynamicCast<JSSVGFEDiffuseLightingElementPrototype*>(vm, JSValue::decode(thisValue)); |
| 165 | if (UNLIKELY(!prototype)) |
| 166 | return throwVMTypeError(state, throwScope); |
| 167 | return JSValue::encode(JSSVGFEDiffuseLightingElement::getConstructor(state->vm(), prototype->globalObject())); |
| 168 | } |
| 169 | |
| 170 | bool setJSSVGFEDiffuseLightingElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 171 | { |
| 172 | VM& vm = state->vm(); |
| 173 | auto throwScope = DECLARE_THROW_SCOPE(vm); |
| 174 | auto* prototype = jsDynamicCast<JSSVGFEDiffuseLightingElementPrototype*>(vm, JSValue::decode(thisValue)); |
| 175 | if (UNLIKELY(!prototype)) { |
| 176 | throwVMTypeError(state, throwScope); |
| 177 | return false; |
| 178 | } |
| 179 | // Shadowing a built-in constructor |
| 180 | return prototype->putDirect(vm, vm.propertyNames->constructor, JSValue::decode(encodedValue)); |
| 181 | } |
| 182 | |
| 183 | static inline JSValue jsSVGFEDiffuseLightingElementIn1Getter(ExecState& state, JSSVGFEDiffuseLightingElement& thisObject, ThrowScope& throwScope) |
| 184 | { |
| 185 | UNUSED_PARAM(throwScope); |
| 186 | UNUSED_PARAM(state); |
| 187 | auto& impl = thisObject.wrapped(); |
| 188 | JSValue result = toJS<IDLInterface<SVGAnimatedString>>(state, *thisObject.globalObject(), throwScope, impl.in1Animated()); |
| 189 | return result; |
| 190 | } |
| 191 | |
| 192 | EncodedJSValue jsSVGFEDiffuseLightingElementIn1(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 193 | { |
| 194 | return IDLAttribute<JSSVGFEDiffuseLightingElement>::get<jsSVGFEDiffuseLightingElementIn1Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "in1" ); |
| 195 | } |
| 196 | |
| 197 | static inline JSValue jsSVGFEDiffuseLightingElementSurfaceScaleGetter(ExecState& state, JSSVGFEDiffuseLightingElement& thisObject, ThrowScope& throwScope) |
| 198 | { |
| 199 | UNUSED_PARAM(throwScope); |
| 200 | UNUSED_PARAM(state); |
| 201 | auto& impl = thisObject.wrapped(); |
| 202 | JSValue result = toJS<IDLInterface<SVGAnimatedNumber>>(state, *thisObject.globalObject(), throwScope, impl.surfaceScaleAnimated()); |
| 203 | return result; |
| 204 | } |
| 205 | |
| 206 | EncodedJSValue jsSVGFEDiffuseLightingElementSurfaceScale(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 207 | { |
| 208 | return IDLAttribute<JSSVGFEDiffuseLightingElement>::get<jsSVGFEDiffuseLightingElementSurfaceScaleGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "surfaceScale" ); |
| 209 | } |
| 210 | |
| 211 | static inline JSValue jsSVGFEDiffuseLightingElementDiffuseConstantGetter(ExecState& state, JSSVGFEDiffuseLightingElement& thisObject, ThrowScope& throwScope) |
| 212 | { |
| 213 | UNUSED_PARAM(throwScope); |
| 214 | UNUSED_PARAM(state); |
| 215 | auto& impl = thisObject.wrapped(); |
| 216 | JSValue result = toJS<IDLInterface<SVGAnimatedNumber>>(state, *thisObject.globalObject(), throwScope, impl.diffuseConstantAnimated()); |
| 217 | return result; |
| 218 | } |
| 219 | |
| 220 | EncodedJSValue jsSVGFEDiffuseLightingElementDiffuseConstant(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 221 | { |
| 222 | return IDLAttribute<JSSVGFEDiffuseLightingElement>::get<jsSVGFEDiffuseLightingElementDiffuseConstantGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "diffuseConstant" ); |
| 223 | } |
| 224 | |
| 225 | static inline JSValue jsSVGFEDiffuseLightingElementKernelUnitLengthXGetter(ExecState& state, JSSVGFEDiffuseLightingElement& thisObject, ThrowScope& throwScope) |
| 226 | { |
| 227 | UNUSED_PARAM(throwScope); |
| 228 | UNUSED_PARAM(state); |
| 229 | auto& impl = thisObject.wrapped(); |
| 230 | JSValue result = toJS<IDLInterface<SVGAnimatedNumber>>(state, *thisObject.globalObject(), throwScope, impl.kernelUnitLengthXAnimated()); |
| 231 | return result; |
| 232 | } |
| 233 | |
| 234 | EncodedJSValue jsSVGFEDiffuseLightingElementKernelUnitLengthX(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 235 | { |
| 236 | return IDLAttribute<JSSVGFEDiffuseLightingElement>::get<jsSVGFEDiffuseLightingElementKernelUnitLengthXGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "kernelUnitLengthX" ); |
| 237 | } |
| 238 | |
| 239 | static inline JSValue jsSVGFEDiffuseLightingElementKernelUnitLengthYGetter(ExecState& state, JSSVGFEDiffuseLightingElement& thisObject, ThrowScope& throwScope) |
| 240 | { |
| 241 | UNUSED_PARAM(throwScope); |
| 242 | UNUSED_PARAM(state); |
| 243 | auto& impl = thisObject.wrapped(); |
| 244 | JSValue result = toJS<IDLInterface<SVGAnimatedNumber>>(state, *thisObject.globalObject(), throwScope, impl.kernelUnitLengthYAnimated()); |
| 245 | return result; |
| 246 | } |
| 247 | |
| 248 | EncodedJSValue jsSVGFEDiffuseLightingElementKernelUnitLengthY(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 249 | { |
| 250 | return IDLAttribute<JSSVGFEDiffuseLightingElement>::get<jsSVGFEDiffuseLightingElementKernelUnitLengthYGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "kernelUnitLengthY" ); |
| 251 | } |
| 252 | |
| 253 | static inline JSValue jsSVGFEDiffuseLightingElementXGetter(ExecState& state, JSSVGFEDiffuseLightingElement& thisObject, ThrowScope& throwScope) |
| 254 | { |
| 255 | UNUSED_PARAM(throwScope); |
| 256 | UNUSED_PARAM(state); |
| 257 | auto& impl = thisObject.wrapped(); |
| 258 | JSValue result = toJS<IDLInterface<SVGAnimatedLength>>(state, *thisObject.globalObject(), throwScope, impl.xAnimated()); |
| 259 | return result; |
| 260 | } |
| 261 | |
| 262 | EncodedJSValue jsSVGFEDiffuseLightingElementX(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 263 | { |
| 264 | return IDLAttribute<JSSVGFEDiffuseLightingElement>::get<jsSVGFEDiffuseLightingElementXGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "x" ); |
| 265 | } |
| 266 | |
| 267 | static inline JSValue jsSVGFEDiffuseLightingElementYGetter(ExecState& state, JSSVGFEDiffuseLightingElement& thisObject, ThrowScope& throwScope) |
| 268 | { |
| 269 | UNUSED_PARAM(throwScope); |
| 270 | UNUSED_PARAM(state); |
| 271 | auto& impl = thisObject.wrapped(); |
| 272 | JSValue result = toJS<IDLInterface<SVGAnimatedLength>>(state, *thisObject.globalObject(), throwScope, impl.yAnimated()); |
| 273 | return result; |
| 274 | } |
| 275 | |
| 276 | EncodedJSValue jsSVGFEDiffuseLightingElementY(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 277 | { |
| 278 | return IDLAttribute<JSSVGFEDiffuseLightingElement>::get<jsSVGFEDiffuseLightingElementYGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "y" ); |
| 279 | } |
| 280 | |
| 281 | static inline JSValue jsSVGFEDiffuseLightingElementWidthGetter(ExecState& state, JSSVGFEDiffuseLightingElement& thisObject, ThrowScope& throwScope) |
| 282 | { |
| 283 | UNUSED_PARAM(throwScope); |
| 284 | UNUSED_PARAM(state); |
| 285 | auto& impl = thisObject.wrapped(); |
| 286 | JSValue result = toJS<IDLInterface<SVGAnimatedLength>>(state, *thisObject.globalObject(), throwScope, impl.widthAnimated()); |
| 287 | return result; |
| 288 | } |
| 289 | |
| 290 | EncodedJSValue jsSVGFEDiffuseLightingElementWidth(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 291 | { |
| 292 | return IDLAttribute<JSSVGFEDiffuseLightingElement>::get<jsSVGFEDiffuseLightingElementWidthGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "width" ); |
| 293 | } |
| 294 | |
| 295 | static inline JSValue jsSVGFEDiffuseLightingElementHeightGetter(ExecState& state, JSSVGFEDiffuseLightingElement& thisObject, ThrowScope& throwScope) |
| 296 | { |
| 297 | UNUSED_PARAM(throwScope); |
| 298 | UNUSED_PARAM(state); |
| 299 | auto& impl = thisObject.wrapped(); |
| 300 | JSValue result = toJS<IDLInterface<SVGAnimatedLength>>(state, *thisObject.globalObject(), throwScope, impl.heightAnimated()); |
| 301 | return result; |
| 302 | } |
| 303 | |
| 304 | EncodedJSValue jsSVGFEDiffuseLightingElementHeight(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 305 | { |
| 306 | return IDLAttribute<JSSVGFEDiffuseLightingElement>::get<jsSVGFEDiffuseLightingElementHeightGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "height" ); |
| 307 | } |
| 308 | |
| 309 | static inline JSValue jsSVGFEDiffuseLightingElementResultGetter(ExecState& state, JSSVGFEDiffuseLightingElement& thisObject, ThrowScope& throwScope) |
| 310 | { |
| 311 | UNUSED_PARAM(throwScope); |
| 312 | UNUSED_PARAM(state); |
| 313 | auto& impl = thisObject.wrapped(); |
| 314 | JSValue result = toJS<IDLInterface<SVGAnimatedString>>(state, *thisObject.globalObject(), throwScope, impl.resultAnimated()); |
| 315 | return result; |
| 316 | } |
| 317 | |
| 318 | EncodedJSValue jsSVGFEDiffuseLightingElementResult(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 319 | { |
| 320 | return IDLAttribute<JSSVGFEDiffuseLightingElement>::get<jsSVGFEDiffuseLightingElementResultGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "result" ); |
| 321 | } |
| 322 | |
| 323 | void JSSVGFEDiffuseLightingElement::heapSnapshot(JSCell* cell, HeapSnapshotBuilder& builder) |
| 324 | { |
| 325 | auto* thisObject = jsCast<JSSVGFEDiffuseLightingElement*>(cell); |
| 326 | builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); |
| 327 | if (thisObject->scriptExecutionContext()) |
| 328 | builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string()); |
| 329 | Base::heapSnapshot(cell, builder); |
| 330 | } |
| 331 | |
| 332 | |
| 333 | } |
| 334 | |