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