Line data Source code
1 : /* THIS FILE IS AUTOGENERATED FROM SVGFEPointLightElement.webidl BY Codegen.py - DO NOT EDIT */
2 :
3 : #include "SVGElementBinding.h"
4 : #include "SVGFEPointLightElementBinding.h"
5 : #include "WrapperFactory.h"
6 : #include "mozilla/OwningNonNull.h"
7 : #include "mozilla/dom/BindingUtils.h"
8 : #include "mozilla/dom/DOMJSClass.h"
9 : #include "mozilla/dom/NonRefcountedDOMObject.h"
10 : #include "mozilla/dom/SVGAnimatedNumber.h"
11 : #include "mozilla/dom/SVGFEPointLightElement.h"
12 : #include "mozilla/dom/XrayExpandoClass.h"
13 :
14 : namespace mozilla {
15 : namespace dom {
16 :
17 : namespace SVGFEPointLightElementBinding {
18 :
19 : static_assert(IsRefcounted<NativeType>::value == IsRefcounted<SVGElementBinding::NativeType>::value,
20 : "Can't inherit from an interface with a different ownership model.");
21 :
22 : static bool
23 0 : get_x(JSContext* cx, JS::Handle<JSObject*> obj, mozilla::dom::SVGFEPointLightElement* self, JSJitGetterCallArgs args)
24 : {
25 0 : auto result(StrongOrRawPtr<mozilla::dom::SVGAnimatedNumber>(self->X()));
26 0 : MOZ_ASSERT(!JS_IsExceptionPending(cx));
27 0 : if (!GetOrCreateDOMReflector(cx, result, args.rval())) {
28 0 : MOZ_ASSERT(true || JS_IsExceptionPending(cx));
29 0 : return false;
30 : }
31 0 : return true;
32 : }
33 :
34 : static const JSJitInfo x_getterinfo = {
35 : { (JSJitGetterOp)get_x },
36 : { prototypes::id::SVGFEPointLightElement },
37 : { PrototypeTraits<prototypes::id::SVGFEPointLightElement>::Depth },
38 : JSJitInfo::Getter,
39 : JSJitInfo::AliasNone, /* aliasSet. Not relevant for setters. */
40 : JSVAL_TYPE_OBJECT, /* returnType. Not relevant for setters. */
41 : false, /* isInfallible. False in setters. */
42 : true, /* isMovable. Not relevant for setters. */
43 : true, /* isEliminatable. Not relevant for setters. */
44 : false, /* isAlwaysInSlot. Only relevant for getters. */
45 : false, /* isLazilyCachedInSlot. Only relevant for getters. */
46 : false, /* isTypedMethod. Only relevant for methods. */
47 : 0 /* Reserved slot index, if we're stored in a slot, else 0. */
48 : };
49 : static_assert(0 <= JSJitInfo::maxSlotIndex, "We won't fit");
50 : static_assert(0 < 1, "There is no slot for us");
51 :
52 : static bool
53 0 : get_y(JSContext* cx, JS::Handle<JSObject*> obj, mozilla::dom::SVGFEPointLightElement* self, JSJitGetterCallArgs args)
54 : {
55 0 : auto result(StrongOrRawPtr<mozilla::dom::SVGAnimatedNumber>(self->Y()));
56 0 : MOZ_ASSERT(!JS_IsExceptionPending(cx));
57 0 : if (!GetOrCreateDOMReflector(cx, result, args.rval())) {
58 0 : MOZ_ASSERT(true || JS_IsExceptionPending(cx));
59 0 : return false;
60 : }
61 0 : return true;
62 : }
63 :
64 : static const JSJitInfo y_getterinfo = {
65 : { (JSJitGetterOp)get_y },
66 : { prototypes::id::SVGFEPointLightElement },
67 : { PrototypeTraits<prototypes::id::SVGFEPointLightElement>::Depth },
68 : JSJitInfo::Getter,
69 : JSJitInfo::AliasNone, /* aliasSet. Not relevant for setters. */
70 : JSVAL_TYPE_OBJECT, /* returnType. Not relevant for setters. */
71 : false, /* isInfallible. False in setters. */
72 : true, /* isMovable. Not relevant for setters. */
73 : true, /* isEliminatable. Not relevant for setters. */
74 : false, /* isAlwaysInSlot. Only relevant for getters. */
75 : false, /* isLazilyCachedInSlot. Only relevant for getters. */
76 : false, /* isTypedMethod. Only relevant for methods. */
77 : 0 /* Reserved slot index, if we're stored in a slot, else 0. */
78 : };
79 : static_assert(0 <= JSJitInfo::maxSlotIndex, "We won't fit");
80 : static_assert(0 < 1, "There is no slot for us");
81 :
82 : static bool
83 0 : get_z(JSContext* cx, JS::Handle<JSObject*> obj, mozilla::dom::SVGFEPointLightElement* self, JSJitGetterCallArgs args)
84 : {
85 0 : auto result(StrongOrRawPtr<mozilla::dom::SVGAnimatedNumber>(self->Z()));
86 0 : MOZ_ASSERT(!JS_IsExceptionPending(cx));
87 0 : if (!GetOrCreateDOMReflector(cx, result, args.rval())) {
88 0 : MOZ_ASSERT(true || JS_IsExceptionPending(cx));
89 0 : return false;
90 : }
91 0 : return true;
92 : }
93 :
94 : static const JSJitInfo z_getterinfo = {
95 : { (JSJitGetterOp)get_z },
96 : { prototypes::id::SVGFEPointLightElement },
97 : { PrototypeTraits<prototypes::id::SVGFEPointLightElement>::Depth },
98 : JSJitInfo::Getter,
99 : JSJitInfo::AliasNone, /* aliasSet. Not relevant for setters. */
100 : JSVAL_TYPE_OBJECT, /* returnType. Not relevant for setters. */
101 : false, /* isInfallible. False in setters. */
102 : true, /* isMovable. Not relevant for setters. */
103 : true, /* isEliminatable. Not relevant for setters. */
104 : false, /* isAlwaysInSlot. Only relevant for getters. */
105 : false, /* isLazilyCachedInSlot. Only relevant for getters. */
106 : false, /* isTypedMethod. Only relevant for methods. */
107 : 0 /* Reserved slot index, if we're stored in a slot, else 0. */
108 : };
109 : static_assert(0 <= JSJitInfo::maxSlotIndex, "We won't fit");
110 : static_assert(0 < 1, "There is no slot for us");
111 :
112 : static bool
113 0 : _addProperty(JSContext* cx, JS::Handle<JSObject*> obj, JS::Handle<jsid> id, JS::Handle<JS::Value> val)
114 : {
115 0 : mozilla::dom::SVGFEPointLightElement* self = UnwrapPossiblyNotInitializedDOMObject<mozilla::dom::SVGFEPointLightElement>(obj);
116 : // We don't want to preserve if we don't have a wrapper, and we
117 : // obviously can't preserve if we're not initialized.
118 0 : if (self && self->GetWrapperPreserveColor()) {
119 0 : PreserveWrapper(self);
120 : }
121 0 : return true;
122 : }
123 :
124 : static void
125 0 : _finalize(js::FreeOp* fop, JSObject* obj)
126 : {
127 0 : mozilla::dom::SVGFEPointLightElement* self = UnwrapPossiblyNotInitializedDOMObject<mozilla::dom::SVGFEPointLightElement>(obj);
128 0 : if (self) {
129 0 : ClearWrapper(self, self, obj);
130 0 : AddForDeferredFinalization<mozilla::dom::SVGFEPointLightElement>(self);
131 : }
132 0 : }
133 :
134 : static void
135 0 : _objectMoved(JSObject* obj, const JSObject* old)
136 : {
137 0 : mozilla::dom::SVGFEPointLightElement* self = UnwrapPossiblyNotInitializedDOMObject<mozilla::dom::SVGFEPointLightElement>(obj);
138 0 : if (self) {
139 0 : UpdateWrapper(self, self, obj, old);
140 : }
141 0 : }
142 :
143 : // We deliberately use brace-elision to make Visual Studio produce better initalization code.
144 : #if defined(__clang__)
145 : #pragma clang diagnostic push
146 : #pragma clang diagnostic ignored "-Wmissing-braces"
147 : #endif
148 : static const JSPropertySpec sAttributes_specs[] = {
149 : { "x", JSPROP_SHARED | JSPROP_ENUMERATE, GenericBindingGetter, &x_getterinfo, nullptr, nullptr },
150 : { "y", JSPROP_SHARED | JSPROP_ENUMERATE, GenericBindingGetter, &y_getterinfo, nullptr, nullptr },
151 : { "z", JSPROP_SHARED | JSPROP_ENUMERATE, GenericBindingGetter, &z_getterinfo, nullptr, nullptr },
152 : { nullptr, 0, nullptr, nullptr, nullptr, nullptr }
153 : };
154 : #if defined(__clang__)
155 : #pragma clang diagnostic pop
156 : #endif
157 :
158 :
159 : // Can't be const because the pref-enabled boolean needs to be writable
160 : static Prefable<const JSPropertySpec> sAttributes[] = {
161 : { nullptr, &sAttributes_specs[0] },
162 : { nullptr, nullptr }
163 : };
164 :
165 : static_assert(1 <= 1ull << NUM_BITS_PROPERTY_INFO_PREF_INDEX,
166 : "We have a prefable index that is >= (1 << NUM_BITS_PROPERTY_INFO_PREF_INDEX)");
167 : static_assert(3 <= 1ull << NUM_BITS_PROPERTY_INFO_SPEC_INDEX,
168 : "We have a spec index that is >= (1 << NUM_BITS_PROPERTY_INFO_SPEC_INDEX)");
169 :
170 :
171 : static uint16_t sNativeProperties_sortedPropertyIndices[3];
172 : static PropertyInfo sNativeProperties_propertyInfos[3];
173 :
174 : static const NativePropertiesN<1> sNativeProperties = {
175 : false, 0,
176 : false, 0,
177 : false, 0,
178 : true, 0 /* sAttributes */,
179 : false, 0,
180 : false, 0,
181 : false, 0,
182 : -1,
183 : 3,
184 : sNativeProperties_sortedPropertyIndices,
185 : {
186 : { sAttributes, &sNativeProperties_propertyInfos[0] }
187 : }
188 : };
189 : static_assert(3 < 1ull << CHAR_BIT * sizeof(sNativeProperties.propertyInfoCount),
190 : "We have a property info count that is oversized");
191 :
192 : static const DOMIfaceAndProtoJSClass sInterfaceObjectClass = {
193 : {
194 : "Function",
195 : JSCLASS_IS_DOMIFACEANDPROTOJSCLASS | JSCLASS_HAS_RESERVED_SLOTS(DOM_INTERFACE_SLOTS_BASE),
196 : &sBoringInterfaceObjectClassClassOps,
197 : JS_NULL_CLASS_SPEC,
198 : JS_NULL_CLASS_EXT,
199 : &sInterfaceObjectClassObjectOps
200 : },
201 : eInterface,
202 : true,
203 : prototypes::id::SVGFEPointLightElement,
204 : PrototypeTraits<prototypes::id::SVGFEPointLightElement>::Depth,
205 : sNativePropertyHooks,
206 : "function SVGFEPointLightElement() {\n [native code]\n}",
207 : SVGElementBinding::GetConstructorObject
208 : };
209 :
210 : static const DOMIfaceAndProtoJSClass sPrototypeClass = {
211 : {
212 : "SVGFEPointLightElementPrototype",
213 : JSCLASS_IS_DOMIFACEANDPROTOJSCLASS | JSCLASS_HAS_RESERVED_SLOTS(DOM_INTERFACE_PROTO_SLOTS_BASE),
214 : JS_NULL_CLASS_OPS,
215 : JS_NULL_CLASS_SPEC,
216 : JS_NULL_CLASS_EXT,
217 : JS_NULL_OBJECT_OPS
218 : },
219 : eInterfacePrototype,
220 : false,
221 : prototypes::id::SVGFEPointLightElement,
222 : PrototypeTraits<prototypes::id::SVGFEPointLightElement>::Depth,
223 : sNativePropertyHooks,
224 : "[object SVGFEPointLightElementPrototype]",
225 : SVGElementBinding::GetProtoObject
226 : };
227 :
228 : JSObject*
229 0 : DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal)
230 : {
231 0 : return GetConstructorObjectHandle(aCx, aDefineOnGlobal);
232 : }
233 :
234 : static const js::ClassOps sClassOps = {
235 : _addProperty, /* addProperty */
236 : nullptr, /* delProperty */
237 : nullptr, /* getProperty */
238 : nullptr, /* setProperty */
239 : nullptr, /* enumerate */
240 : nullptr, /* newEnumerate */
241 : nullptr, /* resolve */
242 : nullptr, /* mayResolve */
243 : _finalize, /* finalize */
244 : nullptr, /* call */
245 : nullptr, /* hasInstance */
246 : nullptr, /* construct */
247 : nullptr, /* trace */
248 : };
249 :
250 : static const js::ClassExtension sClassExtension = {
251 : nullptr, /* weakmapKeyDelegateOp */
252 : _objectMoved /* objectMovedOp */
253 : };
254 :
255 : static const DOMJSClass sClass = {
256 : { "SVGFEPointLightElement",
257 : JSCLASS_IS_DOMJSCLASS | JSCLASS_FOREGROUND_FINALIZE | JSCLASS_HAS_RESERVED_SLOTS(1),
258 : &sClassOps,
259 : JS_NULL_CLASS_SPEC,
260 : &sClassExtension,
261 : JS_NULL_OBJECT_OPS
262 : },
263 : { prototypes::id::EventTarget, prototypes::id::Node, prototypes::id::Element, prototypes::id::SVGElement, prototypes::id::SVGFEPointLightElement, prototypes::id::_ID_Count, prototypes::id::_ID_Count, prototypes::id::_ID_Count },
264 : IsBaseOf<nsISupports, mozilla::dom::SVGFEPointLightElement >::value,
265 : sNativePropertyHooks,
266 : FindAssociatedGlobalForNative<mozilla::dom::SVGFEPointLightElement>::Get,
267 : GetProtoObjectHandle,
268 : GetCCParticipant<mozilla::dom::SVGFEPointLightElement>::Get()
269 : };
270 : static_assert(1 == DOM_INSTANCE_RESERVED_SLOTS,
271 : "Must have the right minimal number of reserved slots.");
272 : static_assert(1 >= 1,
273 : "Must have enough reserved slots.");
274 :
275 : const JSClass*
276 0 : GetJSClass()
277 : {
278 0 : return sClass.ToJSClass();
279 : }
280 :
281 : bool
282 0 : Wrap(JSContext* aCx, mozilla::dom::SVGFEPointLightElement* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector)
283 : {
284 : MOZ_ASSERT(static_cast<mozilla::dom::SVGFEPointLightElement*>(aObject) ==
285 : reinterpret_cast<mozilla::dom::SVGFEPointLightElement*>(aObject),
286 : "Multiple inheritance for mozilla::dom::SVGFEPointLightElement is broken.");
287 : MOZ_ASSERT(static_cast<nsSVGElement*>(aObject) ==
288 : reinterpret_cast<nsSVGElement*>(aObject),
289 : "Multiple inheritance for nsSVGElement is broken.");
290 : MOZ_ASSERT(static_cast<mozilla::dom::Element*>(aObject) ==
291 : reinterpret_cast<mozilla::dom::Element*>(aObject),
292 : "Multiple inheritance for mozilla::dom::Element is broken.");
293 : MOZ_ASSERT(static_cast<nsINode*>(aObject) ==
294 : reinterpret_cast<nsINode*>(aObject),
295 : "Multiple inheritance for nsINode is broken.");
296 : MOZ_ASSERT(static_cast<mozilla::dom::EventTarget*>(aObject) ==
297 : reinterpret_cast<mozilla::dom::EventTarget*>(aObject),
298 : "Multiple inheritance for mozilla::dom::EventTarget is broken.");
299 0 : MOZ_ASSERT(ToSupportsIsCorrect(aObject));
300 0 : MOZ_ASSERT_IF(aGivenProto, js::IsObjectInContextCompartment(aGivenProto, aCx));
301 0 : MOZ_ASSERT(!aCache->GetWrapper(),
302 : "You should probably not be using Wrap() directly; use "
303 : "GetOrCreateDOMReflector instead");
304 :
305 0 : MOZ_ASSERT(ToSupportsIsOnPrimaryInheritanceChain(aObject, aCache),
306 : "nsISupports must be on our primary inheritance chain");
307 :
308 0 : JS::Rooted<JSObject*> global(aCx, FindAssociatedGlobal(aCx, aObject->GetParentObject()));
309 0 : if (!global) {
310 0 : return false;
311 : }
312 0 : MOZ_ASSERT(JS_IsGlobalObject(global));
313 0 : MOZ_ASSERT(JS::ObjectIsNotGray(global));
314 :
315 : // That might have ended up wrapping us already, due to the wonders
316 : // of XBL. Check for that, and bail out as needed.
317 0 : aReflector.set(aCache->GetWrapper());
318 0 : if (aReflector) {
319 : #ifdef DEBUG
320 0 : binding_detail::AssertReflectorHasGivenProto(aCx, aReflector, aGivenProto);
321 : #endif // DEBUG
322 0 : return true;
323 : }
324 :
325 0 : JSAutoCompartment ac(aCx, global);
326 0 : JS::Handle<JSObject*> canonicalProto = GetProtoObjectHandle(aCx);
327 0 : if (!canonicalProto) {
328 0 : return false;
329 : }
330 0 : JS::Rooted<JSObject*> proto(aCx);
331 0 : if (aGivenProto) {
332 0 : proto = aGivenProto;
333 : // Unfortunately, while aGivenProto was in the compartment of aCx
334 : // coming in, we changed compartments to that of "parent" so may need
335 : // to wrap the proto here.
336 0 : if (js::GetContextCompartment(aCx) != js::GetObjectCompartment(proto)) {
337 0 : if (!JS_WrapObject(aCx, &proto)) {
338 0 : return false;
339 : }
340 : }
341 : } else {
342 0 : proto = canonicalProto;
343 : }
344 :
345 0 : BindingJSObjectCreator<mozilla::dom::SVGFEPointLightElement> creator(aCx);
346 0 : creator.CreateObject(aCx, sClass.ToJSClass(), proto, aObject, aReflector);
347 0 : if (!aReflector) {
348 0 : return false;
349 : }
350 :
351 0 : aCache->SetWrapper(aReflector);
352 0 : creator.InitializationSucceeded();
353 :
354 0 : MOZ_ASSERT(aCache->GetWrapperPreserveColor() &&
355 : aCache->GetWrapperPreserveColor() == aReflector);
356 : // If proto != canonicalProto, we have to preserve our wrapper;
357 : // otherwise we won't be able to properly recreate it later, since
358 : // we won't know what proto to use. Note that we don't check
359 : // aGivenProto here, since it's entirely possible (and even
360 : // somewhat common) to have a non-null aGivenProto which is the
361 : // same as canonicalProto.
362 0 : if (proto != canonicalProto) {
363 0 : PreserveWrapper(aObject);
364 : }
365 :
366 0 : return true;
367 : }
368 :
369 : const NativePropertyHooks sNativePropertyHooks[] = { {
370 : nullptr,
371 : nullptr,
372 : nullptr,
373 : { sNativeProperties.Upcast(), nullptr },
374 : prototypes::id::SVGFEPointLightElement,
375 : constructors::id::SVGFEPointLightElement,
376 : SVGElementBinding::sNativePropertyHooks,
377 : &DefaultXrayExpandoObjectClass
378 : } };
379 :
380 : void
381 0 : CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal)
382 : {
383 0 : JS::Handle<JSObject*> parentProto(SVGElementBinding::GetProtoObjectHandle(aCx));
384 0 : if (!parentProto) {
385 0 : return;
386 : }
387 :
388 0 : JS::Handle<JSObject*> constructorProto(SVGElementBinding::GetConstructorObjectHandle(aCx));
389 0 : if (!constructorProto) {
390 0 : return;
391 : }
392 :
393 : static bool sIdsInited = false;
394 0 : if (!sIdsInited && NS_IsMainThread()) {
395 0 : if (!InitIds(aCx, sNativeProperties.Upcast())) {
396 0 : return;
397 : }
398 0 : sIdsInited = true;
399 : }
400 :
401 0 : JS::Heap<JSObject*>* protoCache = &aProtoAndIfaceCache.EntrySlotOrCreate(prototypes::id::SVGFEPointLightElement);
402 0 : JS::Heap<JSObject*>* interfaceCache = &aProtoAndIfaceCache.EntrySlotOrCreate(constructors::id::SVGFEPointLightElement);
403 0 : dom::CreateInterfaceObjects(aCx, aGlobal, parentProto,
404 : &sPrototypeClass.mBase, protoCache,
405 : constructorProto, &sInterfaceObjectClass.mBase, 0, nullptr,
406 : interfaceCache,
407 : sNativeProperties.Upcast(),
408 : nullptr,
409 : "SVGFEPointLightElement", aDefineOnGlobal,
410 : nullptr,
411 0 : false);
412 : }
413 :
414 : JS::Handle<JSObject*>
415 0 : GetProtoObjectHandle(JSContext* aCx)
416 : {
417 : /* Get the interface prototype object for this class. This will create the
418 : object as needed. */
419 0 : bool aDefineOnGlobal = true;
420 :
421 : /* Make sure our global is sane. Hopefully we can remove this sometime */
422 0 : JSObject* global = JS::CurrentGlobalOrNull(aCx);
423 0 : if (!(js::GetObjectClass(global)->flags & JSCLASS_DOM_GLOBAL)) {
424 0 : return nullptr;
425 : }
426 :
427 : /* Check to see whether the interface objects are already installed */
428 0 : ProtoAndIfaceCache& protoAndIfaceCache = *GetProtoAndIfaceCache(global);
429 0 : if (!protoAndIfaceCache.HasEntryInSlot(prototypes::id::SVGFEPointLightElement)) {
430 0 : JS::Rooted<JSObject*> rootedGlobal(aCx, global);
431 0 : CreateInterfaceObjects(aCx, rootedGlobal, protoAndIfaceCache, aDefineOnGlobal);
432 : }
433 :
434 : /*
435 : * The object might _still_ be null, but that's OK.
436 : *
437 : * Calling fromMarkedLocation() is safe because protoAndIfaceCache is
438 : * traced by TraceProtoAndIfaceCache() and its contents are never
439 : * changed after they have been set.
440 : *
441 : * Calling address() avoids the read read barrier that does gray
442 : * unmarking, but it's not possible for the object to be gray here.
443 : */
444 :
445 0 : const JS::Heap<JSObject*>& entrySlot = protoAndIfaceCache.EntrySlotMustExist(prototypes::id::SVGFEPointLightElement);
446 0 : MOZ_ASSERT(JS::ObjectIsNotGray(entrySlot));
447 0 : return JS::Handle<JSObject*>::fromMarkedLocation(entrySlot.address());
448 : }
449 :
450 : JS::Handle<JSObject*>
451 0 : GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal)
452 : {
453 : /* Get the interface object for this class. This will create the object as
454 : needed. */
455 :
456 : /* Make sure our global is sane. Hopefully we can remove this sometime */
457 0 : JSObject* global = JS::CurrentGlobalOrNull(aCx);
458 0 : if (!(js::GetObjectClass(global)->flags & JSCLASS_DOM_GLOBAL)) {
459 0 : return nullptr;
460 : }
461 :
462 : /* Check to see whether the interface objects are already installed */
463 0 : ProtoAndIfaceCache& protoAndIfaceCache = *GetProtoAndIfaceCache(global);
464 0 : if (!protoAndIfaceCache.HasEntryInSlot(constructors::id::SVGFEPointLightElement)) {
465 0 : JS::Rooted<JSObject*> rootedGlobal(aCx, global);
466 0 : CreateInterfaceObjects(aCx, rootedGlobal, protoAndIfaceCache, aDefineOnGlobal);
467 : }
468 :
469 : /*
470 : * The object might _still_ be null, but that's OK.
471 : *
472 : * Calling fromMarkedLocation() is safe because protoAndIfaceCache is
473 : * traced by TraceProtoAndIfaceCache() and its contents are never
474 : * changed after they have been set.
475 : *
476 : * Calling address() avoids the read read barrier that does gray
477 : * unmarking, but it's not possible for the object to be gray here.
478 : */
479 :
480 0 : const JS::Heap<JSObject*>& entrySlot = protoAndIfaceCache.EntrySlotMustExist(constructors::id::SVGFEPointLightElement);
481 0 : MOZ_ASSERT(JS::ObjectIsNotGray(entrySlot));
482 0 : return JS::Handle<JSObject*>::fromMarkedLocation(entrySlot.address());
483 : }
484 :
485 : JSObject*
486 0 : GetConstructorObject(JSContext* aCx)
487 : {
488 0 : return GetConstructorObjectHandle(aCx);
489 : }
490 :
491 : } // namespace SVGFEPointLightElementBinding
492 :
493 :
494 :
495 : } // namespace dom
496 : } // namespace mozilla
|