| 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 "JSSVGFEConvolveMatrixElement.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 "JSSVGAnimatedBoolean.h" |
| 32 | #include "JSSVGAnimatedEnumeration.h" |
| 33 | #include "JSSVGAnimatedInteger.h" |
| 34 | #include "JSSVGAnimatedLength.h" |
| 35 | #include "JSSVGAnimatedNumber.h" |
| 36 | #include "JSSVGAnimatedNumberList.h" |
| 37 | #include "JSSVGAnimatedString.h" |
| 38 | #include "ScriptExecutionContext.h" |
| 39 | #include <JavaScriptCore/HeapSnapshotBuilder.h> |
| 40 | #include <JavaScriptCore/JSCInlines.h> |
| 41 | #include <wtf/GetPtr.h> |
| 42 | #include <wtf/PointerPreparations.h> |
| 43 | #include <wtf/URL.h> |
| 44 | |
| 45 | |
| 46 | namespace WebCore { |
| 47 | using namespace JSC; |
| 48 | |
| 49 | // Attributes |
| 50 | |
| 51 | JSC::EncodedJSValue jsSVGFEConvolveMatrixElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 52 | bool setJSSVGFEConvolveMatrixElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 53 | JSC::EncodedJSValue jsSVGFEConvolveMatrixElementIn1(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 54 | JSC::EncodedJSValue jsSVGFEConvolveMatrixElementOrderX(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 55 | JSC::EncodedJSValue jsSVGFEConvolveMatrixElementOrderY(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 56 | JSC::EncodedJSValue jsSVGFEConvolveMatrixElementKernelMatrix(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 57 | JSC::EncodedJSValue jsSVGFEConvolveMatrixElementDivisor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 58 | JSC::EncodedJSValue jsSVGFEConvolveMatrixElementBias(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 59 | JSC::EncodedJSValue jsSVGFEConvolveMatrixElementTargetX(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 60 | JSC::EncodedJSValue jsSVGFEConvolveMatrixElementTargetY(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 61 | JSC::EncodedJSValue jsSVGFEConvolveMatrixElementEdgeMode(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 62 | JSC::EncodedJSValue jsSVGFEConvolveMatrixElementKernelUnitLengthX(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 63 | JSC::EncodedJSValue jsSVGFEConvolveMatrixElementKernelUnitLengthY(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 64 | JSC::EncodedJSValue jsSVGFEConvolveMatrixElementPreserveAlpha(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 65 | JSC::EncodedJSValue jsSVGFEConvolveMatrixElementX(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 66 | JSC::EncodedJSValue jsSVGFEConvolveMatrixElementY(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 67 | JSC::EncodedJSValue jsSVGFEConvolveMatrixElementWidth(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 68 | JSC::EncodedJSValue jsSVGFEConvolveMatrixElementHeight(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 69 | JSC::EncodedJSValue jsSVGFEConvolveMatrixElementResult(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 70 | |
| 71 | class JSSVGFEConvolveMatrixElementPrototype : public JSC::JSNonFinalObject { |
| 72 | public: |
| 73 | using Base = JSC::JSNonFinalObject; |
| 74 | static JSSVGFEConvolveMatrixElementPrototype* create(JSC::VM& vm, JSDOMGlobalObject* globalObject, JSC::Structure* structure) |
| 75 | { |
| 76 | JSSVGFEConvolveMatrixElementPrototype* ptr = new (NotNull, JSC::allocateCell<JSSVGFEConvolveMatrixElementPrototype>(vm.heap)) JSSVGFEConvolveMatrixElementPrototype(vm, globalObject, structure); |
| 77 | ptr->finishCreation(vm); |
| 78 | return ptr; |
| 79 | } |
| 80 | |
| 81 | DECLARE_INFO; |
| 82 | static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype) |
| 83 | { |
| 84 | return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info()); |
| 85 | } |
| 86 | |
| 87 | private: |
| 88 | JSSVGFEConvolveMatrixElementPrototype(JSC::VM& vm, JSC::JSGlobalObject*, JSC::Structure* structure) |
| 89 | : JSC::JSNonFinalObject(vm, structure) |
| 90 | { |
| 91 | } |
| 92 | |
| 93 | void finishCreation(JSC::VM&); |
| 94 | }; |
| 95 | |
| 96 | using JSSVGFEConvolveMatrixElementConstructor = JSDOMConstructorNotConstructable<JSSVGFEConvolveMatrixElement>; |
| 97 | |
| 98 | /* Hash table for constructor */ |
| 99 | |
| 100 | static const HashTableValue JSSVGFEConvolveMatrixElementConstructorTableValues[] = |
| 101 | { |
| 102 | { "SVG_EDGEMODE_UNKNOWN" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0) } }, |
| 103 | { "SVG_EDGEMODE_DUPLICATE" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(1) } }, |
| 104 | { "SVG_EDGEMODE_WRAP" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(2) } }, |
| 105 | { "SVG_EDGEMODE_NONE" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(3) } }, |
| 106 | }; |
| 107 | |
| 108 | template<> JSValue JSSVGFEConvolveMatrixElementConstructor::prototypeForStructure(JSC::VM& vm, const JSDOMGlobalObject& globalObject) |
| 109 | { |
| 110 | return JSSVGElement::getConstructor(vm, &globalObject); |
| 111 | } |
| 112 | |
| 113 | template<> void JSSVGFEConvolveMatrixElementConstructor::initializeProperties(VM& vm, JSDOMGlobalObject& globalObject) |
| 114 | { |
| 115 | putDirect(vm, vm.propertyNames->prototype, JSSVGFEConvolveMatrixElement::prototype(vm, globalObject), JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum); |
| 116 | putDirect(vm, vm.propertyNames->name, jsNontrivialString(&vm, String("SVGFEConvolveMatrixElement"_s )), JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum); |
| 117 | putDirect(vm, vm.propertyNames->length, jsNumber(0), JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum); |
| 118 | reifyStaticProperties(vm, JSSVGFEConvolveMatrixElement::info(), JSSVGFEConvolveMatrixElementConstructorTableValues, *this); |
| 119 | } |
| 120 | |
| 121 | template<> const ClassInfo JSSVGFEConvolveMatrixElementConstructor::s_info = { "SVGFEConvolveMatrixElement" , &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSSVGFEConvolveMatrixElementConstructor) }; |
| 122 | |
| 123 | /* Hash table for prototype */ |
| 124 | |
| 125 | static const HashTableValue JSSVGFEConvolveMatrixElementPrototypeTableValues[] = |
| 126 | { |
| 127 | { "constructor" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSSVGFEConvolveMatrixElementConstructor) } }, |
| 128 | { "in1" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementIn1), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 129 | { "orderX" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementOrderX), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 130 | { "orderY" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementOrderY), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 131 | { "kernelMatrix" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementKernelMatrix), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 132 | { "divisor" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementDivisor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 133 | { "bias" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementBias), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 134 | { "targetX" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementTargetX), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 135 | { "targetY" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementTargetY), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 136 | { "edgeMode" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementEdgeMode), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 137 | { "kernelUnitLengthX" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementKernelUnitLengthX), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 138 | { "kernelUnitLengthY" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementKernelUnitLengthY), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 139 | { "preserveAlpha" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementPreserveAlpha), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 140 | { "x" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementX), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 141 | { "y" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementY), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 142 | { "width" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementWidth), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 143 | { "height" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementHeight), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 144 | { "result" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEConvolveMatrixElementResult), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 145 | { "SVG_EDGEMODE_UNKNOWN" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0) } }, |
| 146 | { "SVG_EDGEMODE_DUPLICATE" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(1) } }, |
| 147 | { "SVG_EDGEMODE_WRAP" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(2) } }, |
| 148 | { "SVG_EDGEMODE_NONE" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(3) } }, |
| 149 | }; |
| 150 | |
| 151 | const ClassInfo JSSVGFEConvolveMatrixElementPrototype::s_info = { "SVGFEConvolveMatrixElementPrototype" , &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSSVGFEConvolveMatrixElementPrototype) }; |
| 152 | |
| 153 | void JSSVGFEConvolveMatrixElementPrototype::finishCreation(VM& vm) |
| 154 | { |
| 155 | Base::finishCreation(vm); |
| 156 | reifyStaticProperties(vm, JSSVGFEConvolveMatrixElement::info(), JSSVGFEConvolveMatrixElementPrototypeTableValues, *this); |
| 157 | } |
| 158 | |
| 159 | const ClassInfo JSSVGFEConvolveMatrixElement::s_info = { "SVGFEConvolveMatrixElement" , &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSSVGFEConvolveMatrixElement) }; |
| 160 | |
| 161 | JSSVGFEConvolveMatrixElement::JSSVGFEConvolveMatrixElement(Structure* structure, JSDOMGlobalObject& globalObject, Ref<SVGFEConvolveMatrixElement>&& impl) |
| 162 | : JSSVGElement(structure, globalObject, WTFMove(impl)) |
| 163 | { |
| 164 | } |
| 165 | |
| 166 | void JSSVGFEConvolveMatrixElement::finishCreation(VM& vm) |
| 167 | { |
| 168 | Base::finishCreation(vm); |
| 169 | ASSERT(inherits(vm, info())); |
| 170 | |
| 171 | } |
| 172 | |
| 173 | JSObject* JSSVGFEConvolveMatrixElement::createPrototype(VM& vm, JSDOMGlobalObject& globalObject) |
| 174 | { |
| 175 | return JSSVGFEConvolveMatrixElementPrototype::create(vm, &globalObject, JSSVGFEConvolveMatrixElementPrototype::createStructure(vm, &globalObject, JSSVGElement::prototype(vm, globalObject))); |
| 176 | } |
| 177 | |
| 178 | JSObject* JSSVGFEConvolveMatrixElement::prototype(VM& vm, JSDOMGlobalObject& globalObject) |
| 179 | { |
| 180 | return getDOMPrototype<JSSVGFEConvolveMatrixElement>(vm, globalObject); |
| 181 | } |
| 182 | |
| 183 | JSValue JSSVGFEConvolveMatrixElement::getConstructor(VM& vm, const JSGlobalObject* globalObject) |
| 184 | { |
| 185 | return getDOMConstructor<JSSVGFEConvolveMatrixElementConstructor>(vm, *jsCast<const JSDOMGlobalObject*>(globalObject)); |
| 186 | } |
| 187 | |
| 188 | template<> inline JSSVGFEConvolveMatrixElement* IDLAttribute<JSSVGFEConvolveMatrixElement>::cast(ExecState& state, EncodedJSValue thisValue) |
| 189 | { |
| 190 | return jsDynamicCast<JSSVGFEConvolveMatrixElement*>(state.vm(), JSValue::decode(thisValue)); |
| 191 | } |
| 192 | |
| 193 | EncodedJSValue jsSVGFEConvolveMatrixElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 194 | { |
| 195 | VM& vm = state->vm(); |
| 196 | auto throwScope = DECLARE_THROW_SCOPE(vm); |
| 197 | auto* prototype = jsDynamicCast<JSSVGFEConvolveMatrixElementPrototype*>(vm, JSValue::decode(thisValue)); |
| 198 | if (UNLIKELY(!prototype)) |
| 199 | return throwVMTypeError(state, throwScope); |
| 200 | return JSValue::encode(JSSVGFEConvolveMatrixElement::getConstructor(state->vm(), prototype->globalObject())); |
| 201 | } |
| 202 | |
| 203 | bool setJSSVGFEConvolveMatrixElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 204 | { |
| 205 | VM& vm = state->vm(); |
| 206 | auto throwScope = DECLARE_THROW_SCOPE(vm); |
| 207 | auto* prototype = jsDynamicCast<JSSVGFEConvolveMatrixElementPrototype*>(vm, JSValue::decode(thisValue)); |
| 208 | if (UNLIKELY(!prototype)) { |
| 209 | throwVMTypeError(state, throwScope); |
| 210 | return false; |
| 211 | } |
| 212 | // Shadowing a built-in constructor |
| 213 | return prototype->putDirect(vm, vm.propertyNames->constructor, JSValue::decode(encodedValue)); |
| 214 | } |
| 215 | |
| 216 | static inline JSValue jsSVGFEConvolveMatrixElementIn1Getter(ExecState& state, JSSVGFEConvolveMatrixElement& thisObject, ThrowScope& throwScope) |
| 217 | { |
| 218 | UNUSED_PARAM(throwScope); |
| 219 | UNUSED_PARAM(state); |
| 220 | auto& impl = thisObject.wrapped(); |
| 221 | JSValue result = toJS<IDLInterface<SVGAnimatedString>>(state, *thisObject.globalObject(), throwScope, impl.in1Animated()); |
| 222 | return result; |
| 223 | } |
| 224 | |
| 225 | EncodedJSValue jsSVGFEConvolveMatrixElementIn1(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 226 | { |
| 227 | return IDLAttribute<JSSVGFEConvolveMatrixElement>::get<jsSVGFEConvolveMatrixElementIn1Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "in1" ); |
| 228 | } |
| 229 | |
| 230 | static inline JSValue jsSVGFEConvolveMatrixElementOrderXGetter(ExecState& state, JSSVGFEConvolveMatrixElement& thisObject, ThrowScope& throwScope) |
| 231 | { |
| 232 | UNUSED_PARAM(throwScope); |
| 233 | UNUSED_PARAM(state); |
| 234 | auto& impl = thisObject.wrapped(); |
| 235 | JSValue result = toJS<IDLInterface<SVGAnimatedInteger>>(state, *thisObject.globalObject(), throwScope, impl.orderXAnimated()); |
| 236 | return result; |
| 237 | } |
| 238 | |
| 239 | EncodedJSValue jsSVGFEConvolveMatrixElementOrderX(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 240 | { |
| 241 | return IDLAttribute<JSSVGFEConvolveMatrixElement>::get<jsSVGFEConvolveMatrixElementOrderXGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "orderX" ); |
| 242 | } |
| 243 | |
| 244 | static inline JSValue jsSVGFEConvolveMatrixElementOrderYGetter(ExecState& state, JSSVGFEConvolveMatrixElement& thisObject, ThrowScope& throwScope) |
| 245 | { |
| 246 | UNUSED_PARAM(throwScope); |
| 247 | UNUSED_PARAM(state); |
| 248 | auto& impl = thisObject.wrapped(); |
| 249 | JSValue result = toJS<IDLInterface<SVGAnimatedInteger>>(state, *thisObject.globalObject(), throwScope, impl.orderYAnimated()); |
| 250 | return result; |
| 251 | } |
| 252 | |
| 253 | EncodedJSValue jsSVGFEConvolveMatrixElementOrderY(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 254 | { |
| 255 | return IDLAttribute<JSSVGFEConvolveMatrixElement>::get<jsSVGFEConvolveMatrixElementOrderYGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "orderY" ); |
| 256 | } |
| 257 | |
| 258 | static inline JSValue jsSVGFEConvolveMatrixElementKernelMatrixGetter(ExecState& state, JSSVGFEConvolveMatrixElement& thisObject, ThrowScope& throwScope) |
| 259 | { |
| 260 | UNUSED_PARAM(throwScope); |
| 261 | UNUSED_PARAM(state); |
| 262 | auto& impl = thisObject.wrapped(); |
| 263 | JSValue result = toJS<IDLInterface<SVGAnimatedNumberList>>(state, *thisObject.globalObject(), throwScope, impl.kernelMatrixAnimated()); |
| 264 | return result; |
| 265 | } |
| 266 | |
| 267 | EncodedJSValue jsSVGFEConvolveMatrixElementKernelMatrix(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 268 | { |
| 269 | return IDLAttribute<JSSVGFEConvolveMatrixElement>::get<jsSVGFEConvolveMatrixElementKernelMatrixGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "kernelMatrix" ); |
| 270 | } |
| 271 | |
| 272 | static inline JSValue jsSVGFEConvolveMatrixElementDivisorGetter(ExecState& state, JSSVGFEConvolveMatrixElement& thisObject, ThrowScope& throwScope) |
| 273 | { |
| 274 | UNUSED_PARAM(throwScope); |
| 275 | UNUSED_PARAM(state); |
| 276 | auto& impl = thisObject.wrapped(); |
| 277 | JSValue result = toJS<IDLInterface<SVGAnimatedNumber>>(state, *thisObject.globalObject(), throwScope, impl.divisorAnimated()); |
| 278 | return result; |
| 279 | } |
| 280 | |
| 281 | EncodedJSValue jsSVGFEConvolveMatrixElementDivisor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 282 | { |
| 283 | return IDLAttribute<JSSVGFEConvolveMatrixElement>::get<jsSVGFEConvolveMatrixElementDivisorGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "divisor" ); |
| 284 | } |
| 285 | |
| 286 | static inline JSValue jsSVGFEConvolveMatrixElementBiasGetter(ExecState& state, JSSVGFEConvolveMatrixElement& thisObject, ThrowScope& throwScope) |
| 287 | { |
| 288 | UNUSED_PARAM(throwScope); |
| 289 | UNUSED_PARAM(state); |
| 290 | auto& impl = thisObject.wrapped(); |
| 291 | JSValue result = toJS<IDLInterface<SVGAnimatedNumber>>(state, *thisObject.globalObject(), throwScope, impl.biasAnimated()); |
| 292 | return result; |
| 293 | } |
| 294 | |
| 295 | EncodedJSValue jsSVGFEConvolveMatrixElementBias(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 296 | { |
| 297 | return IDLAttribute<JSSVGFEConvolveMatrixElement>::get<jsSVGFEConvolveMatrixElementBiasGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "bias" ); |
| 298 | } |
| 299 | |
| 300 | static inline JSValue jsSVGFEConvolveMatrixElementTargetXGetter(ExecState& state, JSSVGFEConvolveMatrixElement& thisObject, ThrowScope& throwScope) |
| 301 | { |
| 302 | UNUSED_PARAM(throwScope); |
| 303 | UNUSED_PARAM(state); |
| 304 | auto& impl = thisObject.wrapped(); |
| 305 | JSValue result = toJS<IDLInterface<SVGAnimatedInteger>>(state, *thisObject.globalObject(), throwScope, impl.targetXAnimated()); |
| 306 | return result; |
| 307 | } |
| 308 | |
| 309 | EncodedJSValue jsSVGFEConvolveMatrixElementTargetX(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 310 | { |
| 311 | return IDLAttribute<JSSVGFEConvolveMatrixElement>::get<jsSVGFEConvolveMatrixElementTargetXGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "targetX" ); |
| 312 | } |
| 313 | |
| 314 | static inline JSValue jsSVGFEConvolveMatrixElementTargetYGetter(ExecState& state, JSSVGFEConvolveMatrixElement& thisObject, ThrowScope& throwScope) |
| 315 | { |
| 316 | UNUSED_PARAM(throwScope); |
| 317 | UNUSED_PARAM(state); |
| 318 | auto& impl = thisObject.wrapped(); |
| 319 | JSValue result = toJS<IDLInterface<SVGAnimatedInteger>>(state, *thisObject.globalObject(), throwScope, impl.targetYAnimated()); |
| 320 | return result; |
| 321 | } |
| 322 | |
| 323 | EncodedJSValue jsSVGFEConvolveMatrixElementTargetY(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 324 | { |
| 325 | return IDLAttribute<JSSVGFEConvolveMatrixElement>::get<jsSVGFEConvolveMatrixElementTargetYGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "targetY" ); |
| 326 | } |
| 327 | |
| 328 | static inline JSValue jsSVGFEConvolveMatrixElementEdgeModeGetter(ExecState& state, JSSVGFEConvolveMatrixElement& thisObject, ThrowScope& throwScope) |
| 329 | { |
| 330 | UNUSED_PARAM(throwScope); |
| 331 | UNUSED_PARAM(state); |
| 332 | auto& impl = thisObject.wrapped(); |
| 333 | JSValue result = toJS<IDLInterface<SVGAnimatedEnumeration>>(state, *thisObject.globalObject(), throwScope, impl.edgeModeAnimated()); |
| 334 | return result; |
| 335 | } |
| 336 | |
| 337 | EncodedJSValue jsSVGFEConvolveMatrixElementEdgeMode(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 338 | { |
| 339 | return IDLAttribute<JSSVGFEConvolveMatrixElement>::get<jsSVGFEConvolveMatrixElementEdgeModeGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "edgeMode" ); |
| 340 | } |
| 341 | |
| 342 | static inline JSValue jsSVGFEConvolveMatrixElementKernelUnitLengthXGetter(ExecState& state, JSSVGFEConvolveMatrixElement& thisObject, ThrowScope& throwScope) |
| 343 | { |
| 344 | UNUSED_PARAM(throwScope); |
| 345 | UNUSED_PARAM(state); |
| 346 | auto& impl = thisObject.wrapped(); |
| 347 | JSValue result = toJS<IDLInterface<SVGAnimatedNumber>>(state, *thisObject.globalObject(), throwScope, impl.kernelUnitLengthXAnimated()); |
| 348 | return result; |
| 349 | } |
| 350 | |
| 351 | EncodedJSValue jsSVGFEConvolveMatrixElementKernelUnitLengthX(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 352 | { |
| 353 | return IDLAttribute<JSSVGFEConvolveMatrixElement>::get<jsSVGFEConvolveMatrixElementKernelUnitLengthXGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "kernelUnitLengthX" ); |
| 354 | } |
| 355 | |
| 356 | static inline JSValue jsSVGFEConvolveMatrixElementKernelUnitLengthYGetter(ExecState& state, JSSVGFEConvolveMatrixElement& thisObject, ThrowScope& throwScope) |
| 357 | { |
| 358 | UNUSED_PARAM(throwScope); |
| 359 | UNUSED_PARAM(state); |
| 360 | auto& impl = thisObject.wrapped(); |
| 361 | JSValue result = toJS<IDLInterface<SVGAnimatedNumber>>(state, *thisObject.globalObject(), throwScope, impl.kernelUnitLengthYAnimated()); |
| 362 | return result; |
| 363 | } |
| 364 | |
| 365 | EncodedJSValue jsSVGFEConvolveMatrixElementKernelUnitLengthY(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 366 | { |
| 367 | return IDLAttribute<JSSVGFEConvolveMatrixElement>::get<jsSVGFEConvolveMatrixElementKernelUnitLengthYGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "kernelUnitLengthY" ); |
| 368 | } |
| 369 | |
| 370 | static inline JSValue jsSVGFEConvolveMatrixElementPreserveAlphaGetter(ExecState& state, JSSVGFEConvolveMatrixElement& thisObject, ThrowScope& throwScope) |
| 371 | { |
| 372 | UNUSED_PARAM(throwScope); |
| 373 | UNUSED_PARAM(state); |
| 374 | auto& impl = thisObject.wrapped(); |
| 375 | JSValue result = toJS<IDLInterface<SVGAnimatedBoolean>>(state, *thisObject.globalObject(), throwScope, impl.preserveAlphaAnimated()); |
| 376 | return result; |
| 377 | } |
| 378 | |
| 379 | EncodedJSValue jsSVGFEConvolveMatrixElementPreserveAlpha(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 380 | { |
| 381 | return IDLAttribute<JSSVGFEConvolveMatrixElement>::get<jsSVGFEConvolveMatrixElementPreserveAlphaGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "preserveAlpha" ); |
| 382 | } |
| 383 | |
| 384 | static inline JSValue jsSVGFEConvolveMatrixElementXGetter(ExecState& state, JSSVGFEConvolveMatrixElement& thisObject, ThrowScope& throwScope) |
| 385 | { |
| 386 | UNUSED_PARAM(throwScope); |
| 387 | UNUSED_PARAM(state); |
| 388 | auto& impl = thisObject.wrapped(); |
| 389 | JSValue result = toJS<IDLInterface<SVGAnimatedLength>>(state, *thisObject.globalObject(), throwScope, impl.xAnimated()); |
| 390 | return result; |
| 391 | } |
| 392 | |
| 393 | EncodedJSValue jsSVGFEConvolveMatrixElementX(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 394 | { |
| 395 | return IDLAttribute<JSSVGFEConvolveMatrixElement>::get<jsSVGFEConvolveMatrixElementXGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "x" ); |
| 396 | } |
| 397 | |
| 398 | static inline JSValue jsSVGFEConvolveMatrixElementYGetter(ExecState& state, JSSVGFEConvolveMatrixElement& thisObject, ThrowScope& throwScope) |
| 399 | { |
| 400 | UNUSED_PARAM(throwScope); |
| 401 | UNUSED_PARAM(state); |
| 402 | auto& impl = thisObject.wrapped(); |
| 403 | JSValue result = toJS<IDLInterface<SVGAnimatedLength>>(state, *thisObject.globalObject(), throwScope, impl.yAnimated()); |
| 404 | return result; |
| 405 | } |
| 406 | |
| 407 | EncodedJSValue jsSVGFEConvolveMatrixElementY(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 408 | { |
| 409 | return IDLAttribute<JSSVGFEConvolveMatrixElement>::get<jsSVGFEConvolveMatrixElementYGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "y" ); |
| 410 | } |
| 411 | |
| 412 | static inline JSValue jsSVGFEConvolveMatrixElementWidthGetter(ExecState& state, JSSVGFEConvolveMatrixElement& thisObject, ThrowScope& throwScope) |
| 413 | { |
| 414 | UNUSED_PARAM(throwScope); |
| 415 | UNUSED_PARAM(state); |
| 416 | auto& impl = thisObject.wrapped(); |
| 417 | JSValue result = toJS<IDLInterface<SVGAnimatedLength>>(state, *thisObject.globalObject(), throwScope, impl.widthAnimated()); |
| 418 | return result; |
| 419 | } |
| 420 | |
| 421 | EncodedJSValue jsSVGFEConvolveMatrixElementWidth(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 422 | { |
| 423 | return IDLAttribute<JSSVGFEConvolveMatrixElement>::get<jsSVGFEConvolveMatrixElementWidthGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "width" ); |
| 424 | } |
| 425 | |
| 426 | static inline JSValue jsSVGFEConvolveMatrixElementHeightGetter(ExecState& state, JSSVGFEConvolveMatrixElement& thisObject, ThrowScope& throwScope) |
| 427 | { |
| 428 | UNUSED_PARAM(throwScope); |
| 429 | UNUSED_PARAM(state); |
| 430 | auto& impl = thisObject.wrapped(); |
| 431 | JSValue result = toJS<IDLInterface<SVGAnimatedLength>>(state, *thisObject.globalObject(), throwScope, impl.heightAnimated()); |
| 432 | return result; |
| 433 | } |
| 434 | |
| 435 | EncodedJSValue jsSVGFEConvolveMatrixElementHeight(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 436 | { |
| 437 | return IDLAttribute<JSSVGFEConvolveMatrixElement>::get<jsSVGFEConvolveMatrixElementHeightGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "height" ); |
| 438 | } |
| 439 | |
| 440 | static inline JSValue jsSVGFEConvolveMatrixElementResultGetter(ExecState& state, JSSVGFEConvolveMatrixElement& thisObject, ThrowScope& throwScope) |
| 441 | { |
| 442 | UNUSED_PARAM(throwScope); |
| 443 | UNUSED_PARAM(state); |
| 444 | auto& impl = thisObject.wrapped(); |
| 445 | JSValue result = toJS<IDLInterface<SVGAnimatedString>>(state, *thisObject.globalObject(), throwScope, impl.resultAnimated()); |
| 446 | return result; |
| 447 | } |
| 448 | |
| 449 | EncodedJSValue jsSVGFEConvolveMatrixElementResult(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 450 | { |
| 451 | return IDLAttribute<JSSVGFEConvolveMatrixElement>::get<jsSVGFEConvolveMatrixElementResultGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "result" ); |
| 452 | } |
| 453 | |
| 454 | void JSSVGFEConvolveMatrixElement::heapSnapshot(JSCell* cell, HeapSnapshotBuilder& builder) |
| 455 | { |
| 456 | auto* thisObject = jsCast<JSSVGFEConvolveMatrixElement*>(cell); |
| 457 | builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); |
| 458 | if (thisObject->scriptExecutionContext()) |
| 459 | builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string()); |
| 460 | Base::heapSnapshot(cell, builder); |
| 461 | } |
| 462 | |
| 463 | |
| 464 | } |
| 465 | |