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 "JSSVGComponentTransferFunctionElement.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 "JSSVGAnimatedNumber.h" |
33 | #include "JSSVGAnimatedNumberList.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 jsSVGComponentTransferFunctionElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
48 | bool setJSSVGComponentTransferFunctionElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
49 | JSC::EncodedJSValue jsSVGComponentTransferFunctionElementType(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
50 | JSC::EncodedJSValue jsSVGComponentTransferFunctionElementTableValues(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
51 | JSC::EncodedJSValue jsSVGComponentTransferFunctionElementSlope(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
52 | JSC::EncodedJSValue jsSVGComponentTransferFunctionElementIntercept(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
53 | JSC::EncodedJSValue jsSVGComponentTransferFunctionElementAmplitude(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
54 | JSC::EncodedJSValue jsSVGComponentTransferFunctionElementExponent(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
55 | JSC::EncodedJSValue jsSVGComponentTransferFunctionElementOffset(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
56 | |
57 | class JSSVGComponentTransferFunctionElementPrototype : public JSC::JSNonFinalObject { |
58 | public: |
59 | using Base = JSC::JSNonFinalObject; |
60 | static JSSVGComponentTransferFunctionElementPrototype* create(JSC::VM& vm, JSDOMGlobalObject* globalObject, JSC::Structure* structure) |
61 | { |
62 | JSSVGComponentTransferFunctionElementPrototype* ptr = new (NotNull, JSC::allocateCell<JSSVGComponentTransferFunctionElementPrototype>(vm.heap)) JSSVGComponentTransferFunctionElementPrototype(vm, globalObject, structure); |
63 | ptr->finishCreation(vm); |
64 | return ptr; |
65 | } |
66 | |
67 | DECLARE_INFO; |
68 | static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype) |
69 | { |
70 | return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info()); |
71 | } |
72 | |
73 | private: |
74 | JSSVGComponentTransferFunctionElementPrototype(JSC::VM& vm, JSC::JSGlobalObject*, JSC::Structure* structure) |
75 | : JSC::JSNonFinalObject(vm, structure) |
76 | { |
77 | } |
78 | |
79 | void finishCreation(JSC::VM&); |
80 | }; |
81 | |
82 | using JSSVGComponentTransferFunctionElementConstructor = JSDOMConstructorNotConstructable<JSSVGComponentTransferFunctionElement>; |
83 | |
84 | /* Hash table for constructor */ |
85 | |
86 | static const HashTableValue JSSVGComponentTransferFunctionElementConstructorTableValues[] = |
87 | { |
88 | { "SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0) } }, |
89 | { "SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(1) } }, |
90 | { "SVG_FECOMPONENTTRANSFER_TYPE_TABLE" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(2) } }, |
91 | { "SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(3) } }, |
92 | { "SVG_FECOMPONENTTRANSFER_TYPE_LINEAR" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(4) } }, |
93 | { "SVG_FECOMPONENTTRANSFER_TYPE_GAMMA" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(5) } }, |
94 | }; |
95 | |
96 | template<> JSValue JSSVGComponentTransferFunctionElementConstructor::prototypeForStructure(JSC::VM& vm, const JSDOMGlobalObject& globalObject) |
97 | { |
98 | return JSSVGElement::getConstructor(vm, &globalObject); |
99 | } |
100 | |
101 | template<> void JSSVGComponentTransferFunctionElementConstructor::initializeProperties(VM& vm, JSDOMGlobalObject& globalObject) |
102 | { |
103 | putDirect(vm, vm.propertyNames->prototype, JSSVGComponentTransferFunctionElement::prototype(vm, globalObject), JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum); |
104 | putDirect(vm, vm.propertyNames->name, jsNontrivialString(&vm, String("SVGComponentTransferFunctionElement"_s )), JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum); |
105 | putDirect(vm, vm.propertyNames->length, jsNumber(0), JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum); |
106 | reifyStaticProperties(vm, JSSVGComponentTransferFunctionElement::info(), JSSVGComponentTransferFunctionElementConstructorTableValues, *this); |
107 | } |
108 | |
109 | template<> const ClassInfo JSSVGComponentTransferFunctionElementConstructor::s_info = { "SVGComponentTransferFunctionElement" , &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSSVGComponentTransferFunctionElementConstructor) }; |
110 | |
111 | /* Hash table for prototype */ |
112 | |
113 | static const HashTableValue JSSVGComponentTransferFunctionElementPrototypeTableValues[] = |
114 | { |
115 | { "constructor" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGComponentTransferFunctionElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSSVGComponentTransferFunctionElementConstructor) } }, |
116 | { "type" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGComponentTransferFunctionElementType), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
117 | { "tableValues" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGComponentTransferFunctionElementTableValues), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
118 | { "slope" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGComponentTransferFunctionElementSlope), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
119 | { "intercept" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGComponentTransferFunctionElementIntercept), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
120 | { "amplitude" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGComponentTransferFunctionElementAmplitude), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
121 | { "exponent" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGComponentTransferFunctionElementExponent), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
122 | { "offset" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGComponentTransferFunctionElementOffset), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
123 | { "SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(0) } }, |
124 | { "SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(1) } }, |
125 | { "SVG_FECOMPONENTTRANSFER_TYPE_TABLE" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(2) } }, |
126 | { "SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(3) } }, |
127 | { "SVG_FECOMPONENTTRANSFER_TYPE_LINEAR" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(4) } }, |
128 | { "SVG_FECOMPONENTTRANSFER_TYPE_GAMMA" , JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::ConstantInteger, NoIntrinsic, { (long long)(5) } }, |
129 | }; |
130 | |
131 | const ClassInfo JSSVGComponentTransferFunctionElementPrototype::s_info = { "SVGComponentTransferFunctionElementPrototype" , &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSSVGComponentTransferFunctionElementPrototype) }; |
132 | |
133 | void JSSVGComponentTransferFunctionElementPrototype::finishCreation(VM& vm) |
134 | { |
135 | Base::finishCreation(vm); |
136 | reifyStaticProperties(vm, JSSVGComponentTransferFunctionElement::info(), JSSVGComponentTransferFunctionElementPrototypeTableValues, *this); |
137 | } |
138 | |
139 | const ClassInfo JSSVGComponentTransferFunctionElement::s_info = { "SVGComponentTransferFunctionElement" , &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSSVGComponentTransferFunctionElement) }; |
140 | |
141 | JSSVGComponentTransferFunctionElement::JSSVGComponentTransferFunctionElement(Structure* structure, JSDOMGlobalObject& globalObject, Ref<SVGComponentTransferFunctionElement>&& impl) |
142 | : JSSVGElement(structure, globalObject, WTFMove(impl)) |
143 | { |
144 | } |
145 | |
146 | void JSSVGComponentTransferFunctionElement::finishCreation(VM& vm) |
147 | { |
148 | Base::finishCreation(vm); |
149 | ASSERT(inherits(vm, info())); |
150 | |
151 | } |
152 | |
153 | JSObject* JSSVGComponentTransferFunctionElement::createPrototype(VM& vm, JSDOMGlobalObject& globalObject) |
154 | { |
155 | return JSSVGComponentTransferFunctionElementPrototype::create(vm, &globalObject, JSSVGComponentTransferFunctionElementPrototype::createStructure(vm, &globalObject, JSSVGElement::prototype(vm, globalObject))); |
156 | } |
157 | |
158 | JSObject* JSSVGComponentTransferFunctionElement::prototype(VM& vm, JSDOMGlobalObject& globalObject) |
159 | { |
160 | return getDOMPrototype<JSSVGComponentTransferFunctionElement>(vm, globalObject); |
161 | } |
162 | |
163 | JSValue JSSVGComponentTransferFunctionElement::getConstructor(VM& vm, const JSGlobalObject* globalObject) |
164 | { |
165 | return getDOMConstructor<JSSVGComponentTransferFunctionElementConstructor>(vm, *jsCast<const JSDOMGlobalObject*>(globalObject)); |
166 | } |
167 | |
168 | template<> inline JSSVGComponentTransferFunctionElement* IDLAttribute<JSSVGComponentTransferFunctionElement>::cast(ExecState& state, EncodedJSValue thisValue) |
169 | { |
170 | return jsDynamicCast<JSSVGComponentTransferFunctionElement*>(state.vm(), JSValue::decode(thisValue)); |
171 | } |
172 | |
173 | EncodedJSValue jsSVGComponentTransferFunctionElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
174 | { |
175 | VM& vm = state->vm(); |
176 | auto throwScope = DECLARE_THROW_SCOPE(vm); |
177 | auto* prototype = jsDynamicCast<JSSVGComponentTransferFunctionElementPrototype*>(vm, JSValue::decode(thisValue)); |
178 | if (UNLIKELY(!prototype)) |
179 | return throwVMTypeError(state, throwScope); |
180 | return JSValue::encode(JSSVGComponentTransferFunctionElement::getConstructor(state->vm(), prototype->globalObject())); |
181 | } |
182 | |
183 | bool setJSSVGComponentTransferFunctionElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
184 | { |
185 | VM& vm = state->vm(); |
186 | auto throwScope = DECLARE_THROW_SCOPE(vm); |
187 | auto* prototype = jsDynamicCast<JSSVGComponentTransferFunctionElementPrototype*>(vm, JSValue::decode(thisValue)); |
188 | if (UNLIKELY(!prototype)) { |
189 | throwVMTypeError(state, throwScope); |
190 | return false; |
191 | } |
192 | // Shadowing a built-in constructor |
193 | return prototype->putDirect(vm, vm.propertyNames->constructor, JSValue::decode(encodedValue)); |
194 | } |
195 | |
196 | static inline JSValue jsSVGComponentTransferFunctionElementTypeGetter(ExecState& state, JSSVGComponentTransferFunctionElement& thisObject, ThrowScope& throwScope) |
197 | { |
198 | UNUSED_PARAM(throwScope); |
199 | UNUSED_PARAM(state); |
200 | auto& impl = thisObject.wrapped(); |
201 | JSValue result = toJS<IDLInterface<SVGAnimatedEnumeration>>(state, *thisObject.globalObject(), throwScope, impl.typeAnimated()); |
202 | return result; |
203 | } |
204 | |
205 | EncodedJSValue jsSVGComponentTransferFunctionElementType(ExecState* state, EncodedJSValue thisValue, PropertyName) |
206 | { |
207 | return IDLAttribute<JSSVGComponentTransferFunctionElement>::get<jsSVGComponentTransferFunctionElementTypeGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "type" ); |
208 | } |
209 | |
210 | static inline JSValue jsSVGComponentTransferFunctionElementTableValuesGetter(ExecState& state, JSSVGComponentTransferFunctionElement& thisObject, ThrowScope& throwScope) |
211 | { |
212 | UNUSED_PARAM(throwScope); |
213 | UNUSED_PARAM(state); |
214 | auto& impl = thisObject.wrapped(); |
215 | JSValue result = toJS<IDLInterface<SVGAnimatedNumberList>>(state, *thisObject.globalObject(), throwScope, impl.tableValuesAnimated()); |
216 | return result; |
217 | } |
218 | |
219 | EncodedJSValue jsSVGComponentTransferFunctionElementTableValues(ExecState* state, EncodedJSValue thisValue, PropertyName) |
220 | { |
221 | return IDLAttribute<JSSVGComponentTransferFunctionElement>::get<jsSVGComponentTransferFunctionElementTableValuesGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "tableValues" ); |
222 | } |
223 | |
224 | static inline JSValue jsSVGComponentTransferFunctionElementSlopeGetter(ExecState& state, JSSVGComponentTransferFunctionElement& thisObject, ThrowScope& throwScope) |
225 | { |
226 | UNUSED_PARAM(throwScope); |
227 | UNUSED_PARAM(state); |
228 | auto& impl = thisObject.wrapped(); |
229 | JSValue result = toJS<IDLInterface<SVGAnimatedNumber>>(state, *thisObject.globalObject(), throwScope, impl.slopeAnimated()); |
230 | return result; |
231 | } |
232 | |
233 | EncodedJSValue jsSVGComponentTransferFunctionElementSlope(ExecState* state, EncodedJSValue thisValue, PropertyName) |
234 | { |
235 | return IDLAttribute<JSSVGComponentTransferFunctionElement>::get<jsSVGComponentTransferFunctionElementSlopeGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "slope" ); |
236 | } |
237 | |
238 | static inline JSValue jsSVGComponentTransferFunctionElementInterceptGetter(ExecState& state, JSSVGComponentTransferFunctionElement& thisObject, ThrowScope& throwScope) |
239 | { |
240 | UNUSED_PARAM(throwScope); |
241 | UNUSED_PARAM(state); |
242 | auto& impl = thisObject.wrapped(); |
243 | JSValue result = toJS<IDLInterface<SVGAnimatedNumber>>(state, *thisObject.globalObject(), throwScope, impl.interceptAnimated()); |
244 | return result; |
245 | } |
246 | |
247 | EncodedJSValue jsSVGComponentTransferFunctionElementIntercept(ExecState* state, EncodedJSValue thisValue, PropertyName) |
248 | { |
249 | return IDLAttribute<JSSVGComponentTransferFunctionElement>::get<jsSVGComponentTransferFunctionElementInterceptGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "intercept" ); |
250 | } |
251 | |
252 | static inline JSValue jsSVGComponentTransferFunctionElementAmplitudeGetter(ExecState& state, JSSVGComponentTransferFunctionElement& thisObject, ThrowScope& throwScope) |
253 | { |
254 | UNUSED_PARAM(throwScope); |
255 | UNUSED_PARAM(state); |
256 | auto& impl = thisObject.wrapped(); |
257 | JSValue result = toJS<IDLInterface<SVGAnimatedNumber>>(state, *thisObject.globalObject(), throwScope, impl.amplitudeAnimated()); |
258 | return result; |
259 | } |
260 | |
261 | EncodedJSValue jsSVGComponentTransferFunctionElementAmplitude(ExecState* state, EncodedJSValue thisValue, PropertyName) |
262 | { |
263 | return IDLAttribute<JSSVGComponentTransferFunctionElement>::get<jsSVGComponentTransferFunctionElementAmplitudeGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "amplitude" ); |
264 | } |
265 | |
266 | static inline JSValue jsSVGComponentTransferFunctionElementExponentGetter(ExecState& state, JSSVGComponentTransferFunctionElement& thisObject, ThrowScope& throwScope) |
267 | { |
268 | UNUSED_PARAM(throwScope); |
269 | UNUSED_PARAM(state); |
270 | auto& impl = thisObject.wrapped(); |
271 | JSValue result = toJS<IDLInterface<SVGAnimatedNumber>>(state, *thisObject.globalObject(), throwScope, impl.exponentAnimated()); |
272 | return result; |
273 | } |
274 | |
275 | EncodedJSValue jsSVGComponentTransferFunctionElementExponent(ExecState* state, EncodedJSValue thisValue, PropertyName) |
276 | { |
277 | return IDLAttribute<JSSVGComponentTransferFunctionElement>::get<jsSVGComponentTransferFunctionElementExponentGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "exponent" ); |
278 | } |
279 | |
280 | static inline JSValue jsSVGComponentTransferFunctionElementOffsetGetter(ExecState& state, JSSVGComponentTransferFunctionElement& thisObject, ThrowScope& throwScope) |
281 | { |
282 | UNUSED_PARAM(throwScope); |
283 | UNUSED_PARAM(state); |
284 | auto& impl = thisObject.wrapped(); |
285 | JSValue result = toJS<IDLInterface<SVGAnimatedNumber>>(state, *thisObject.globalObject(), throwScope, impl.offsetAnimated()); |
286 | return result; |
287 | } |
288 | |
289 | EncodedJSValue jsSVGComponentTransferFunctionElementOffset(ExecState* state, EncodedJSValue thisValue, PropertyName) |
290 | { |
291 | return IDLAttribute<JSSVGComponentTransferFunctionElement>::get<jsSVGComponentTransferFunctionElementOffsetGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "offset" ); |
292 | } |
293 | |
294 | void JSSVGComponentTransferFunctionElement::heapSnapshot(JSCell* cell, HeapSnapshotBuilder& builder) |
295 | { |
296 | auto* thisObject = jsCast<JSSVGComponentTransferFunctionElement*>(cell); |
297 | builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); |
298 | if (thisObject->scriptExecutionContext()) |
299 | builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string()); |
300 | Base::heapSnapshot(cell, builder); |
301 | } |
302 | |
303 | |
304 | } |
305 | |