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