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
45namespace WebCore {
46using namespace JSC;
47
48// Functions
49
50JSC::EncodedJSValue JSC_HOST_CALL jsSVGFEGaussianBlurElementPrototypeFunctionSetStdDeviation(JSC::ExecState*);
51
52// Attributes
53
54JSC::EncodedJSValue jsSVGFEGaussianBlurElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
55bool setJSSVGFEGaussianBlurElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
56JSC::EncodedJSValue jsSVGFEGaussianBlurElementIn1(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
57JSC::EncodedJSValue jsSVGFEGaussianBlurElementStdDeviationX(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
58JSC::EncodedJSValue jsSVGFEGaussianBlurElementStdDeviationY(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
59JSC::EncodedJSValue jsSVGFEGaussianBlurElementEdgeMode(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
60JSC::EncodedJSValue jsSVGFEGaussianBlurElementX(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
61JSC::EncodedJSValue jsSVGFEGaussianBlurElementY(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
62JSC::EncodedJSValue jsSVGFEGaussianBlurElementWidth(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
63JSC::EncodedJSValue jsSVGFEGaussianBlurElementHeight(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
64JSC::EncodedJSValue jsSVGFEGaussianBlurElementResult(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
65
66class JSSVGFEGaussianBlurElementPrototype : public JSC::JSNonFinalObject {
67public:
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
82private:
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
91using JSSVGFEGaussianBlurElementConstructor = JSDOMConstructorNotConstructable<JSSVGFEGaussianBlurElement>;
92
93/* Hash table for constructor */
94
95static 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
103template<> JSValue JSSVGFEGaussianBlurElementConstructor::prototypeForStructure(JSC::VM& vm, const JSDOMGlobalObject& globalObject)
104{
105 return JSSVGElement::getConstructor(vm, &globalObject);
106}
107
108template<> 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
116template<> const ClassInfo JSSVGFEGaussianBlurElementConstructor::s_info = { "SVGFEGaussianBlurElement", &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSSVGFEGaussianBlurElementConstructor) };
117
118/* Hash table for prototype */
119
120static 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
139const ClassInfo JSSVGFEGaussianBlurElementPrototype::s_info = { "SVGFEGaussianBlurElementPrototype", &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSSVGFEGaussianBlurElementPrototype) };
140
141void JSSVGFEGaussianBlurElementPrototype::finishCreation(VM& vm)
142{
143 Base::finishCreation(vm);
144 reifyStaticProperties(vm, JSSVGFEGaussianBlurElement::info(), JSSVGFEGaussianBlurElementPrototypeTableValues, *this);
145}
146
147const ClassInfo JSSVGFEGaussianBlurElement::s_info = { "SVGFEGaussianBlurElement", &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSSVGFEGaussianBlurElement) };
148
149JSSVGFEGaussianBlurElement::JSSVGFEGaussianBlurElement(Structure* structure, JSDOMGlobalObject& globalObject, Ref<SVGFEGaussianBlurElement>&& impl)
150 : JSSVGElement(structure, globalObject, WTFMove(impl))
151{
152}
153
154void JSSVGFEGaussianBlurElement::finishCreation(VM& vm)
155{
156 Base::finishCreation(vm);
157 ASSERT(inherits(vm, info()));
158
159}
160
161JSObject* JSSVGFEGaussianBlurElement::createPrototype(VM& vm, JSDOMGlobalObject& globalObject)
162{
163 return JSSVGFEGaussianBlurElementPrototype::create(vm, &globalObject, JSSVGFEGaussianBlurElementPrototype::createStructure(vm, &globalObject, JSSVGElement::prototype(vm, globalObject)));
164}
165
166JSObject* JSSVGFEGaussianBlurElement::prototype(VM& vm, JSDOMGlobalObject& globalObject)
167{
168 return getDOMPrototype<JSSVGFEGaussianBlurElement>(vm, globalObject);
169}
170
171JSValue JSSVGFEGaussianBlurElement::getConstructor(VM& vm, const JSGlobalObject* globalObject)
172{
173 return getDOMConstructor<JSSVGFEGaussianBlurElementConstructor>(vm, *jsCast<const JSDOMGlobalObject*>(globalObject));
174}
175
176template<> inline JSSVGFEGaussianBlurElement* IDLAttribute<JSSVGFEGaussianBlurElement>::cast(ExecState& state, EncodedJSValue thisValue)
177{
178 return jsDynamicCast<JSSVGFEGaussianBlurElement*>(state.vm(), JSValue::decode(thisValue));
179}
180
181template<> inline JSSVGFEGaussianBlurElement* IDLOperation<JSSVGFEGaussianBlurElement>::cast(ExecState& state)
182{
183 return jsDynamicCast<JSSVGFEGaussianBlurElement*>(state.vm(), state.thisValue());
184}
185
186EncodedJSValue 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
196bool 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
209static 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
218EncodedJSValue jsSVGFEGaussianBlurElementIn1(ExecState* state, EncodedJSValue thisValue, PropertyName)
219{
220 return IDLAttribute<JSSVGFEGaussianBlurElement>::get<jsSVGFEGaussianBlurElementIn1Getter, CastedThisErrorBehavior::Assert>(*state, thisValue, "in1");
221}
222
223static 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
232EncodedJSValue jsSVGFEGaussianBlurElementStdDeviationX(ExecState* state, EncodedJSValue thisValue, PropertyName)
233{
234 return IDLAttribute<JSSVGFEGaussianBlurElement>::get<jsSVGFEGaussianBlurElementStdDeviationXGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "stdDeviationX");
235}
236
237static 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
246EncodedJSValue jsSVGFEGaussianBlurElementStdDeviationY(ExecState* state, EncodedJSValue thisValue, PropertyName)
247{
248 return IDLAttribute<JSSVGFEGaussianBlurElement>::get<jsSVGFEGaussianBlurElementStdDeviationYGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "stdDeviationY");
249}
250
251static 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
260EncodedJSValue jsSVGFEGaussianBlurElementEdgeMode(ExecState* state, EncodedJSValue thisValue, PropertyName)
261{
262 return IDLAttribute<JSSVGFEGaussianBlurElement>::get<jsSVGFEGaussianBlurElementEdgeModeGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "edgeMode");
263}
264
265static 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
274EncodedJSValue jsSVGFEGaussianBlurElementX(ExecState* state, EncodedJSValue thisValue, PropertyName)
275{
276 return IDLAttribute<JSSVGFEGaussianBlurElement>::get<jsSVGFEGaussianBlurElementXGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "x");
277}
278
279static 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
288EncodedJSValue jsSVGFEGaussianBlurElementY(ExecState* state, EncodedJSValue thisValue, PropertyName)
289{
290 return IDLAttribute<JSSVGFEGaussianBlurElement>::get<jsSVGFEGaussianBlurElementYGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "y");
291}
292
293static 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
302EncodedJSValue jsSVGFEGaussianBlurElementWidth(ExecState* state, EncodedJSValue thisValue, PropertyName)
303{
304 return IDLAttribute<JSSVGFEGaussianBlurElement>::get<jsSVGFEGaussianBlurElementWidthGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "width");
305}
306
307static 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
316EncodedJSValue jsSVGFEGaussianBlurElementHeight(ExecState* state, EncodedJSValue thisValue, PropertyName)
317{
318 return IDLAttribute<JSSVGFEGaussianBlurElement>::get<jsSVGFEGaussianBlurElementHeightGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "height");
319}
320
321static 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
330EncodedJSValue jsSVGFEGaussianBlurElementResult(ExecState* state, EncodedJSValue thisValue, PropertyName)
331{
332 return IDLAttribute<JSSVGFEGaussianBlurElement>::get<jsSVGFEGaussianBlurElementResultGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "result");
333}
334
335static 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
348EncodedJSValue JSC_HOST_CALL jsSVGFEGaussianBlurElementPrototypeFunctionSetStdDeviation(ExecState* state)
349{
350 return IDLOperation<JSSVGFEGaussianBlurElement>::call<jsSVGFEGaussianBlurElementPrototypeFunctionSetStdDeviationBody>(*state, "setStdDeviation");
351}
352
353void 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