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 "JSSVGFEBlendElement.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 "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 jsSVGFEBlendElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
48 | bool setJSSVGFEBlendElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
49 | JSC::EncodedJSValue jsSVGFEBlendElementIn1(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
50 | JSC::EncodedJSValue jsSVGFEBlendElementIn2(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
51 | JSC::EncodedJSValue jsSVGFEBlendElementMode(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
52 | JSC::EncodedJSValue jsSVGFEBlendElementX(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
53 | JSC::EncodedJSValue jsSVGFEBlendElementY(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
54 | JSC::EncodedJSValue jsSVGFEBlendElementWidth(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
55 | JSC::EncodedJSValue jsSVGFEBlendElementHeight(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
56 | JSC::EncodedJSValue jsSVGFEBlendElementResult(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
57 | |
58 | class JSSVGFEBlendElementPrototype : public JSC::JSNonFinalObject { |
59 | public: |
60 | using Base = JSC::JSNonFinalObject; |
61 | static JSSVGFEBlendElementPrototype* create(JSC::VM& vm, JSDOMGlobalObject* globalObject, JSC::Structure* structure) |
62 | { |
63 | JSSVGFEBlendElementPrototype* ptr = new (NotNull, JSC::allocateCell<JSSVGFEBlendElementPrototype>(vm.heap)) JSSVGFEBlendElementPrototype(vm, globalObject, structure); |
64 | ptr->finishCreation(vm); |
65 | return ptr; |
66 | } |
67 | |
68 | DECLARE_INFO; |
69 | static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype) |
70 | { |
71 | return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info()); |
72 | } |
73 | |
74 | private: |
75 | JSSVGFEBlendElementPrototype(JSC::VM& vm, JSC::JSGlobalObject*, JSC::Structure* structure) |
76 | : JSC::JSNonFinalObject(vm, structure) |
77 | { |
78 | } |
79 | |
80 | void finishCreation(JSC::VM&); |
81 | }; |
82 | |
83 | using JSSVGFEBlendElementConstructor = JSDOMConstructorNotConstructable<JSSVGFEBlendElement>; |
84 | |
85 | /* Hash table for constructor */ |
86 | |
87 | static const HashTableValue JSSVGFEBlendElementConstructorTableValues[] = |
88 | { |
89 | { "SVG_FEBLEND_MODE_UNKNOWN" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0) } }, |
90 | { "SVG_FEBLEND_MODE_NORMAL" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(1) } }, |
91 | { "SVG_FEBLEND_MODE_MULTIPLY" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(2) } }, |
92 | { "SVG_FEBLEND_MODE_SCREEN" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(3) } }, |
93 | { "SVG_FEBLEND_MODE_DARKEN" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(4) } }, |
94 | { "SVG_FEBLEND_MODE_LIGHTEN" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(5) } }, |
95 | { "SVG_FEBLEND_MODE_OVERLAY" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(6) } }, |
96 | { "SVG_FEBLEND_MODE_COLOR_DODGE" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(7) } }, |
97 | { "SVG_FEBLEND_MODE_COLOR_BURN" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(8) } }, |
98 | { "SVG_FEBLEND_MODE_HARD_LIGHT" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(9) } }, |
99 | { "SVG_FEBLEND_MODE_SOFT_LIGHT" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(10) } }, |
100 | { "SVG_FEBLEND_MODE_DIFFERENCE" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(11) } }, |
101 | { "SVG_FEBLEND_MODE_EXCLUSION" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(12) } }, |
102 | { "SVG_FEBLEND_MODE_HUE" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(13) } }, |
103 | { "SVG_FEBLEND_MODE_SATURATION" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(14) } }, |
104 | { "SVG_FEBLEND_MODE_COLOR" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(15) } }, |
105 | { "SVG_FEBLEND_MODE_LUMINOSITY" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(16) } }, |
106 | }; |
107 | |
108 | template<> JSValue JSSVGFEBlendElementConstructor::prototypeForStructure(JSC::VM& vm, const JSDOMGlobalObject& globalObject) |
109 | { |
110 | return JSSVGElement::getConstructor(vm, &globalObject); |
111 | } |
112 | |
113 | template<> void JSSVGFEBlendElementConstructor::initializeProperties(VM& vm, JSDOMGlobalObject& globalObject) |
114 | { |
115 | putDirect(vm, vm.propertyNames->prototype, JSSVGFEBlendElement::prototype(vm, globalObject), JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum); |
116 | putDirect(vm, vm.propertyNames->name, jsNontrivialString(&vm, String("SVGFEBlendElement"_s )), JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum); |
117 | putDirect(vm, vm.propertyNames->length, jsNumber(0), JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum); |
118 | reifyStaticProperties(vm, JSSVGFEBlendElement::info(), JSSVGFEBlendElementConstructorTableValues, *this); |
119 | } |
120 | |
121 | template<> const ClassInfo JSSVGFEBlendElementConstructor::s_info = { "SVGFEBlendElement" , &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSSVGFEBlendElementConstructor) }; |
122 | |
123 | /* Hash table for prototype */ |
124 | |
125 | static const HashTableValue JSSVGFEBlendElementPrototypeTableValues[] = |
126 | { |
127 | { "constructor" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEBlendElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSSVGFEBlendElementConstructor) } }, |
128 | { "in1" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEBlendElementIn1), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
129 | { "in2" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEBlendElementIn2), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
130 | { "mode" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEBlendElementMode), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
131 | { "x" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEBlendElementX), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
132 | { "y" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEBlendElementY), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
133 | { "width" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEBlendElementWidth), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
134 | { "height" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEBlendElementHeight), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
135 | { "result" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEBlendElementResult), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
136 | { "SVG_FEBLEND_MODE_UNKNOWN" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0) } }, |
137 | { "SVG_FEBLEND_MODE_NORMAL" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(1) } }, |
138 | { "SVG_FEBLEND_MODE_MULTIPLY" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(2) } }, |
139 | { "SVG_FEBLEND_MODE_SCREEN" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(3) } }, |
140 | { "SVG_FEBLEND_MODE_DARKEN" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(4) } }, |
141 | { "SVG_FEBLEND_MODE_LIGHTEN" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(5) } }, |
142 | { "SVG_FEBLEND_MODE_OVERLAY" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(6) } }, |
143 | { "SVG_FEBLEND_MODE_COLOR_DODGE" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(7) } }, |
144 | { "SVG_FEBLEND_MODE_COLOR_BURN" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(8) } }, |
145 | { "SVG_FEBLEND_MODE_HARD_LIGHT" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(9) } }, |
146 | { "SVG_FEBLEND_MODE_SOFT_LIGHT" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(10) } }, |
147 | { "SVG_FEBLEND_MODE_DIFFERENCE" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(11) } }, |
148 | { "SVG_FEBLEND_MODE_EXCLUSION" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(12) } }, |
149 | { "SVG_FEBLEND_MODE_HUE" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(13) } }, |
150 | { "SVG_FEBLEND_MODE_SATURATION" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(14) } }, |
151 | { "SVG_FEBLEND_MODE_COLOR" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(15) } }, |
152 | { "SVG_FEBLEND_MODE_LUMINOSITY" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(16) } }, |
153 | }; |
154 | |
155 | const ClassInfo JSSVGFEBlendElementPrototype::s_info = { "SVGFEBlendElementPrototype" , &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSSVGFEBlendElementPrototype) }; |
156 | |
157 | void JSSVGFEBlendElementPrototype::finishCreation(VM& vm) |
158 | { |
159 | Base::finishCreation(vm); |
160 | reifyStaticProperties(vm, JSSVGFEBlendElement::info(), JSSVGFEBlendElementPrototypeTableValues, *this); |
161 | } |
162 | |
163 | const ClassInfo JSSVGFEBlendElement::s_info = { "SVGFEBlendElement" , &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSSVGFEBlendElement) }; |
164 | |
165 | JSSVGFEBlendElement::JSSVGFEBlendElement(Structure* structure, JSDOMGlobalObject& globalObject, Ref<SVGFEBlendElement>&& impl) |
166 | : JSSVGElement(structure, globalObject, WTFMove(impl)) |
167 | { |
168 | } |
169 | |
170 | void JSSVGFEBlendElement::finishCreation(VM& vm) |
171 | { |
172 | Base::finishCreation(vm); |
173 | ASSERT(inherits(vm, info())); |
174 | |
175 | } |
176 | |
177 | JSObject* JSSVGFEBlendElement::createPrototype(VM& vm, JSDOMGlobalObject& globalObject) |
178 | { |
179 | return JSSVGFEBlendElementPrototype::create(vm, &globalObject, JSSVGFEBlendElementPrototype::createStructure(vm, &globalObject, JSSVGElement::prototype(vm, globalObject))); |
180 | } |
181 | |
182 | JSObject* JSSVGFEBlendElement::prototype(VM& vm, JSDOMGlobalObject& globalObject) |
183 | { |
184 | return getDOMPrototype<JSSVGFEBlendElement>(vm, globalObject); |
185 | } |
186 | |
187 | JSValue JSSVGFEBlendElement::getConstructor(VM& vm, const JSGlobalObject* globalObject) |
188 | { |
189 | return getDOMConstructor<JSSVGFEBlendElementConstructor>(vm, *jsCast<const JSDOMGlobalObject*>(globalObject)); |
190 | } |
191 | |
192 | template<> inline JSSVGFEBlendElement* IDLAttribute<JSSVGFEBlendElement>::cast(ExecState& state, EncodedJSValue thisValue) |
193 | { |
194 | return jsDynamicCast<JSSVGFEBlendElement*>(state.vm(), JSValue::decode(thisValue)); |
195 | } |
196 | |
197 | EncodedJSValue jsSVGFEBlendElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
198 | { |
199 | VM& vm = state->vm(); |
200 | auto throwScope = DECLARE_THROW_SCOPE(vm); |
201 | auto* prototype = jsDynamicCast<JSSVGFEBlendElementPrototype*>(vm, JSValue::decode(thisValue)); |
202 | if (UNLIKELY(!prototype)) |
203 | return throwVMTypeError(state, throwScope); |
204 | return JSValue::encode(JSSVGFEBlendElement::getConstructor(state->vm(), prototype->globalObject())); |
205 | } |
206 | |
207 | bool setJSSVGFEBlendElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
208 | { |
209 | VM& vm = state->vm(); |
210 | auto throwScope = DECLARE_THROW_SCOPE(vm); |
211 | auto* prototype = jsDynamicCast<JSSVGFEBlendElementPrototype*>(vm, JSValue::decode(thisValue)); |
212 | if (UNLIKELY(!prototype)) { |
213 | throwVMTypeError(state, throwScope); |
214 | return false; |
215 | } |
216 | // Shadowing a built-in constructor |
217 | return prototype->putDirect(vm, vm.propertyNames->constructor, JSValue::decode(encodedValue)); |
218 | } |
219 | |
220 | static inline JSValue jsSVGFEBlendElementIn1Getter(ExecState& state, JSSVGFEBlendElement& thisObject, ThrowScope& throwScope) |
221 | { |
222 | UNUSED_PARAM(throwScope); |
223 | UNUSED_PARAM(state); |
224 | auto& impl = thisObject.wrapped(); |
225 | JSValue result = toJS<IDLInterface<SVGAnimatedString>>(state, *thisObject.globalObject(), throwScope, impl.in1Animated()); |
226 | return result; |
227 | } |
228 | |
229 | EncodedJSValue jsSVGFEBlendElementIn1(ExecState* state, EncodedJSValue thisValue, PropertyName) |
230 | { |
231 | return IDLAttribute<JSSVGFEBlendElement>::get<jsSVGFEBlendElementIn1Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "in1" ); |
232 | } |
233 | |
234 | static inline JSValue jsSVGFEBlendElementIn2Getter(ExecState& state, JSSVGFEBlendElement& thisObject, ThrowScope& throwScope) |
235 | { |
236 | UNUSED_PARAM(throwScope); |
237 | UNUSED_PARAM(state); |
238 | auto& impl = thisObject.wrapped(); |
239 | JSValue result = toJS<IDLInterface<SVGAnimatedString>>(state, *thisObject.globalObject(), throwScope, impl.in2Animated()); |
240 | return result; |
241 | } |
242 | |
243 | EncodedJSValue jsSVGFEBlendElementIn2(ExecState* state, EncodedJSValue thisValue, PropertyName) |
244 | { |
245 | return IDLAttribute<JSSVGFEBlendElement>::get<jsSVGFEBlendElementIn2Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "in2" ); |
246 | } |
247 | |
248 | static inline JSValue jsSVGFEBlendElementModeGetter(ExecState& state, JSSVGFEBlendElement& thisObject, ThrowScope& throwScope) |
249 | { |
250 | UNUSED_PARAM(throwScope); |
251 | UNUSED_PARAM(state); |
252 | auto& impl = thisObject.wrapped(); |
253 | JSValue result = toJS<IDLInterface<SVGAnimatedEnumeration>>(state, *thisObject.globalObject(), throwScope, impl.modeAnimated()); |
254 | return result; |
255 | } |
256 | |
257 | EncodedJSValue jsSVGFEBlendElementMode(ExecState* state, EncodedJSValue thisValue, PropertyName) |
258 | { |
259 | return IDLAttribute<JSSVGFEBlendElement>::get<jsSVGFEBlendElementModeGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "mode" ); |
260 | } |
261 | |
262 | static inline JSValue jsSVGFEBlendElementXGetter(ExecState& state, JSSVGFEBlendElement& thisObject, ThrowScope& throwScope) |
263 | { |
264 | UNUSED_PARAM(throwScope); |
265 | UNUSED_PARAM(state); |
266 | auto& impl = thisObject.wrapped(); |
267 | JSValue result = toJS<IDLInterface<SVGAnimatedLength>>(state, *thisObject.globalObject(), throwScope, impl.xAnimated()); |
268 | return result; |
269 | } |
270 | |
271 | EncodedJSValue jsSVGFEBlendElementX(ExecState* state, EncodedJSValue thisValue, PropertyName) |
272 | { |
273 | return IDLAttribute<JSSVGFEBlendElement>::get<jsSVGFEBlendElementXGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "x" ); |
274 | } |
275 | |
276 | static inline JSValue jsSVGFEBlendElementYGetter(ExecState& state, JSSVGFEBlendElement& thisObject, ThrowScope& throwScope) |
277 | { |
278 | UNUSED_PARAM(throwScope); |
279 | UNUSED_PARAM(state); |
280 | auto& impl = thisObject.wrapped(); |
281 | JSValue result = toJS<IDLInterface<SVGAnimatedLength>>(state, *thisObject.globalObject(), throwScope, impl.yAnimated()); |
282 | return result; |
283 | } |
284 | |
285 | EncodedJSValue jsSVGFEBlendElementY(ExecState* state, EncodedJSValue thisValue, PropertyName) |
286 | { |
287 | return IDLAttribute<JSSVGFEBlendElement>::get<jsSVGFEBlendElementYGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "y" ); |
288 | } |
289 | |
290 | static inline JSValue jsSVGFEBlendElementWidthGetter(ExecState& state, JSSVGFEBlendElement& thisObject, ThrowScope& throwScope) |
291 | { |
292 | UNUSED_PARAM(throwScope); |
293 | UNUSED_PARAM(state); |
294 | auto& impl = thisObject.wrapped(); |
295 | JSValue result = toJS<IDLInterface<SVGAnimatedLength>>(state, *thisObject.globalObject(), throwScope, impl.widthAnimated()); |
296 | return result; |
297 | } |
298 | |
299 | EncodedJSValue jsSVGFEBlendElementWidth(ExecState* state, EncodedJSValue thisValue, PropertyName) |
300 | { |
301 | return IDLAttribute<JSSVGFEBlendElement>::get<jsSVGFEBlendElementWidthGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "width" ); |
302 | } |
303 | |
304 | static inline JSValue jsSVGFEBlendElementHeightGetter(ExecState& state, JSSVGFEBlendElement& thisObject, ThrowScope& throwScope) |
305 | { |
306 | UNUSED_PARAM(throwScope); |
307 | UNUSED_PARAM(state); |
308 | auto& impl = thisObject.wrapped(); |
309 | JSValue result = toJS<IDLInterface<SVGAnimatedLength>>(state, *thisObject.globalObject(), throwScope, impl.heightAnimated()); |
310 | return result; |
311 | } |
312 | |
313 | EncodedJSValue jsSVGFEBlendElementHeight(ExecState* state, EncodedJSValue thisValue, PropertyName) |
314 | { |
315 | return IDLAttribute<JSSVGFEBlendElement>::get<jsSVGFEBlendElementHeightGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "height" ); |
316 | } |
317 | |
318 | static inline JSValue jsSVGFEBlendElementResultGetter(ExecState& state, JSSVGFEBlendElement& thisObject, ThrowScope& throwScope) |
319 | { |
320 | UNUSED_PARAM(throwScope); |
321 | UNUSED_PARAM(state); |
322 | auto& impl = thisObject.wrapped(); |
323 | JSValue result = toJS<IDLInterface<SVGAnimatedString>>(state, *thisObject.globalObject(), throwScope, impl.resultAnimated()); |
324 | return result; |
325 | } |
326 | |
327 | EncodedJSValue jsSVGFEBlendElementResult(ExecState* state, EncodedJSValue thisValue, PropertyName) |
328 | { |
329 | return IDLAttribute<JSSVGFEBlendElement>::get<jsSVGFEBlendElementResultGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "result" ); |
330 | } |
331 | |
332 | void JSSVGFEBlendElement::heapSnapshot(JSCell* cell, HeapSnapshotBuilder& builder) |
333 | { |
334 | auto* thisObject = jsCast<JSSVGFEBlendElement*>(cell); |
335 | builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); |
336 | if (thisObject->scriptExecutionContext()) |
337 | builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string()); |
338 | Base::heapSnapshot(cell, builder); |
339 | } |
340 | |
341 | |
342 | } |
343 | |