Line data Source code
1 : /* THIS FILE IS AUTOGENERATED FROM SVGCircleElement.webidl BY Codegen.py - DO NOT EDIT */
2 :
3 : #include "SVGCircleElementBinding.h"
4 : #include "SVGGraphicsElementBinding.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/SVGAnimatedLength.h"
11 : #include "mozilla/dom/SVGCircleElement.h"
12 : #include "mozilla/dom/XrayExpandoClass.h"
13 :
14 : namespace mozilla {
15 : namespace dom {
16 :
17 : namespace SVGCircleElementBinding {
18 :
19 : static_assert(IsRefcounted<NativeType>::value == IsRefcounted<SVGGraphicsElementBinding::NativeType>::value,
20 : "Can't inherit from an interface with a different ownership model.");
21 :
22 : static bool
23 0 : get_cx(JSContext* cx, JS::Handle<JSObject*> obj, mozilla::dom::SVGCircleElement* self, JSJitGetterCallArgs args)
24 : {
25 0 : auto result(StrongOrRawPtr<mozilla::dom::SVGAnimatedLength>(self->Cx()));
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 cx_getterinfo = {
35 : { (JSJitGetterOp)get_cx },
36 : { prototypes::id::SVGCircleElement },
37 : { PrototypeTraits<prototypes::id::SVGCircleElement>::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_cy(JSContext* cx, JS::Handle<JSObject*> obj, mozilla::dom::SVGCircleElement* self, JSJitGetterCallArgs args)
54 : {
55 0 : auto result(StrongOrRawPtr<mozilla::dom::SVGAnimatedLength>(self->Cy()));
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 cy_getterinfo = {
65 : { (JSJitGetterOp)get_cy },
66 : { prototypes::id::SVGCircleElement },
67 : { PrototypeTraits<prototypes::id::SVGCircleElement>::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_r(JSContext* cx, JS::Handle<JSObject*> obj, mozilla::dom::SVGCircleElement* self, JSJitGetterCallArgs args)
84 : {
85 0 : auto result(StrongOrRawPtr<mozilla::dom::SVGAnimatedLength>(self->R()));
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 r_getterinfo = {
95 : { (JSJitGetterOp)get_r },
96 : { prototypes::id::SVGCircleElement },
97 : { PrototypeTraits<prototypes::id::SVGCircleElement>::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::SVGCircleElement* self = UnwrapPossiblyNotInitializedDOMObject<mozilla::dom::SVGCircleElement>(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::SVGCircleElement* self = UnwrapPossiblyNotInitializedDOMObject<mozilla::dom::SVGCircleElement>(obj);
128 0 : if (self) {
129 0 : ClearWrapper(self, self, obj);
130 0 : AddForDeferredFinalization<mozilla::dom::SVGCircleElement>(self);
131 : }
132 0 : }
133 :
134 : static void
135 0 : _objectMoved(JSObject* obj, const JSObject* old)
136 : {
137 0 : mozilla::dom::SVGCircleElement* self = UnwrapPossiblyNotInitializedDOMObject<mozilla::dom::SVGCircleElement>(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 : { "cx", JSPROP_SHARED | JSPROP_ENUMERATE, GenericBindingGetter, &cx_getterinfo, nullptr, nullptr },
150 : { "cy", JSPROP_SHARED | JSPROP_ENUMERATE, GenericBindingGetter, &cy_getterinfo, nullptr, nullptr },
151 : { "r", JSPROP_SHARED | JSPROP_ENUMERATE, GenericBindingGetter, &r_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::SVGCircleElement,
204 : PrototypeTraits<prototypes::id::SVGCircleElement>::Depth,
205 : sNativePropertyHooks,
206 : "function SVGCircleElement() {\n [native code]\n}",
207 : SVGGraphicsElementBinding::GetConstructorObject
208 : };
209 :
210 : static const DOMIfaceAndProtoJSClass sPrototypeClass = {
211 : {
212 : "SVGCircleElementPrototype",
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::SVGCircleElement,
222 : PrototypeTraits<prototypes::id::SVGCircleElement>::Depth,
223 : sNativePropertyHooks,
224 : "[object SVGCircleElementPrototype]",
225 : SVGGraphicsElementBinding::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 : { "SVGCircleElement",
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::SVGGraphicsElement, prototypes::id::SVGCircleElement, prototypes::id::_ID_Count, prototypes::id::_ID_Count },
264 : IsBaseOf<nsISupports, mozilla::dom::SVGCircleElement >::value,
265 : sNativePropertyHooks,
266 : FindAssociatedGlobalForNative<mozilla::dom::SVGCircleElement>::Get,
267 : GetProtoObjectHandle,
268 : GetCCParticipant<mozilla::dom::SVGCircleElement>::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::SVGCircleElement* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector)
283 : {
284 : MOZ_ASSERT(static_cast<mozilla::dom::SVGCircleElement*>(aObject) ==
285 : reinterpret_cast<mozilla::dom::SVGCircleElement*>(aObject),
286 : "Multiple inheritance for mozilla::dom::SVGCircleElement is broken.");
287 : MOZ_ASSERT(static_cast<mozilla::dom::SVGGraphicsElement*>(aObject) ==
288 : reinterpret_cast<mozilla::dom::SVGGraphicsElement*>(aObject),
289 : "Multiple inheritance for mozilla::dom::SVGGraphicsElement is broken.");
290 : MOZ_ASSERT(static_cast<nsSVGElement*>(aObject) ==
291 : reinterpret_cast<nsSVGElement*>(aObject),
292 : "Multiple inheritance for nsSVGElement is broken.");
293 : MOZ_ASSERT(static_cast<mozilla::dom::Element*>(aObject) ==
294 : reinterpret_cast<mozilla::dom::Element*>(aObject),
295 : "Multiple inheritance for mozilla::dom::Element is broken.");
296 : MOZ_ASSERT(static_cast<nsINode*>(aObject) ==
297 : reinterpret_cast<nsINode*>(aObject),
298 : "Multiple inheritance for nsINode is broken.");
299 : MOZ_ASSERT(static_cast<mozilla::dom::EventTarget*>(aObject) ==
300 : reinterpret_cast<mozilla::dom::EventTarget*>(aObject),
301 : "Multiple inheritance for mozilla::dom::EventTarget is broken.");
302 0 : MOZ_ASSERT(ToSupportsIsCorrect(aObject));
303 0 : MOZ_ASSERT_IF(aGivenProto, js::IsObjectInContextCompartment(aGivenProto, aCx));
304 0 : MOZ_ASSERT(!aCache->GetWrapper(),
305 : "You should probably not be using Wrap() directly; use "
306 : "GetOrCreateDOMReflector instead");
307 :
308 0 : MOZ_ASSERT(ToSupportsIsOnPrimaryInheritanceChain(aObject, aCache),
309 : "nsISupports must be on our primary inheritance chain");
310 :
311 0 : JS::Rooted<JSObject*> global(aCx, FindAssociatedGlobal(aCx, aObject->GetParentObject()));
312 0 : if (!global) {
313 0 : return false;
314 : }
315 0 : MOZ_ASSERT(JS_IsGlobalObject(global));
316 0 : MOZ_ASSERT(JS::ObjectIsNotGray(global));
317 :
318 : // That might have ended up wrapping us already, due to the wonders
319 : // of XBL. Check for that, and bail out as needed.
320 0 : aReflector.set(aCache->GetWrapper());
321 0 : if (aReflector) {
322 : #ifdef DEBUG
323 0 : binding_detail::AssertReflectorHasGivenProto(aCx, aReflector, aGivenProto);
324 : #endif // DEBUG
325 0 : return true;
326 : }
327 :
328 0 : JSAutoCompartment ac(aCx, global);
329 0 : JS::Handle<JSObject*> canonicalProto = GetProtoObjectHandle(aCx);
330 0 : if (!canonicalProto) {
331 0 : return false;
332 : }
333 0 : JS::Rooted<JSObject*> proto(aCx);
334 0 : if (aGivenProto) {
335 0 : proto = aGivenProto;
336 : // Unfortunately, while aGivenProto was in the compartment of aCx
337 : // coming in, we changed compartments to that of "parent" so may need
338 : // to wrap the proto here.
339 0 : if (js::GetContextCompartment(aCx) != js::GetObjectCompartment(proto)) {
340 0 : if (!JS_WrapObject(aCx, &proto)) {
341 0 : return false;
342 : }
343 : }
344 : } else {
345 0 : proto = canonicalProto;
346 : }
347 :
348 0 : BindingJSObjectCreator<mozilla::dom::SVGCircleElement> creator(aCx);
349 0 : creator.CreateObject(aCx, sClass.ToJSClass(), proto, aObject, aReflector);
350 0 : if (!aReflector) {
351 0 : return false;
352 : }
353 :
354 0 : aCache->SetWrapper(aReflector);
355 0 : creator.InitializationSucceeded();
356 :
357 0 : MOZ_ASSERT(aCache->GetWrapperPreserveColor() &&
358 : aCache->GetWrapperPreserveColor() == aReflector);
359 : // If proto != canonicalProto, we have to preserve our wrapper;
360 : // otherwise we won't be able to properly recreate it later, since
361 : // we won't know what proto to use. Note that we don't check
362 : // aGivenProto here, since it's entirely possible (and even
363 : // somewhat common) to have a non-null aGivenProto which is the
364 : // same as canonicalProto.
365 0 : if (proto != canonicalProto) {
366 0 : PreserveWrapper(aObject);
367 : }
368 :
369 0 : return true;
370 : }
371 :
372 : const NativePropertyHooks sNativePropertyHooks[] = { {
373 : nullptr,
374 : nullptr,
375 : nullptr,
376 : { sNativeProperties.Upcast(), nullptr },
377 : prototypes::id::SVGCircleElement,
378 : constructors::id::SVGCircleElement,
379 : SVGGraphicsElementBinding::sNativePropertyHooks,
380 : &DefaultXrayExpandoObjectClass
381 : } };
382 :
383 : void
384 0 : CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal)
385 : {
386 0 : JS::Handle<JSObject*> parentProto(SVGGraphicsElementBinding::GetProtoObjectHandle(aCx));
387 0 : if (!parentProto) {
388 0 : return;
389 : }
390 :
391 0 : JS::Handle<JSObject*> constructorProto(SVGGraphicsElementBinding::GetConstructorObjectHandle(aCx));
392 0 : if (!constructorProto) {
393 0 : return;
394 : }
395 :
396 : static bool sIdsInited = false;
397 0 : if (!sIdsInited && NS_IsMainThread()) {
398 0 : if (!InitIds(aCx, sNativeProperties.Upcast())) {
399 0 : return;
400 : }
401 0 : sIdsInited = true;
402 : }
403 :
404 0 : JS::Heap<JSObject*>* protoCache = &aProtoAndIfaceCache.EntrySlotOrCreate(prototypes::id::SVGCircleElement);
405 0 : JS::Heap<JSObject*>* interfaceCache = &aProtoAndIfaceCache.EntrySlotOrCreate(constructors::id::SVGCircleElement);
406 0 : dom::CreateInterfaceObjects(aCx, aGlobal, parentProto,
407 : &sPrototypeClass.mBase, protoCache,
408 : constructorProto, &sInterfaceObjectClass.mBase, 0, nullptr,
409 : interfaceCache,
410 : sNativeProperties.Upcast(),
411 : nullptr,
412 : "SVGCircleElement", aDefineOnGlobal,
413 : nullptr,
414 0 : false);
415 : }
416 :
417 : JS::Handle<JSObject*>
418 0 : GetProtoObjectHandle(JSContext* aCx)
419 : {
420 : /* Get the interface prototype object for this class. This will create the
421 : object as needed. */
422 0 : bool aDefineOnGlobal = true;
423 :
424 : /* Make sure our global is sane. Hopefully we can remove this sometime */
425 0 : JSObject* global = JS::CurrentGlobalOrNull(aCx);
426 0 : if (!(js::GetObjectClass(global)->flags & JSCLASS_DOM_GLOBAL)) {
427 0 : return nullptr;
428 : }
429 :
430 : /* Check to see whether the interface objects are already installed */
431 0 : ProtoAndIfaceCache& protoAndIfaceCache = *GetProtoAndIfaceCache(global);
432 0 : if (!protoAndIfaceCache.HasEntryInSlot(prototypes::id::SVGCircleElement)) {
433 0 : JS::Rooted<JSObject*> rootedGlobal(aCx, global);
434 0 : CreateInterfaceObjects(aCx, rootedGlobal, protoAndIfaceCache, aDefineOnGlobal);
435 : }
436 :
437 : /*
438 : * The object might _still_ be null, but that's OK.
439 : *
440 : * Calling fromMarkedLocation() is safe because protoAndIfaceCache is
441 : * traced by TraceProtoAndIfaceCache() and its contents are never
442 : * changed after they have been set.
443 : *
444 : * Calling address() avoids the read read barrier that does gray
445 : * unmarking, but it's not possible for the object to be gray here.
446 : */
447 :
448 0 : const JS::Heap<JSObject*>& entrySlot = protoAndIfaceCache.EntrySlotMustExist(prototypes::id::SVGCircleElement);
449 0 : MOZ_ASSERT(JS::ObjectIsNotGray(entrySlot));
450 0 : return JS::Handle<JSObject*>::fromMarkedLocation(entrySlot.address());
451 : }
452 :
453 : JS::Handle<JSObject*>
454 0 : GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal)
455 : {
456 : /* Get the interface object for this class. This will create the object as
457 : needed. */
458 :
459 : /* Make sure our global is sane. Hopefully we can remove this sometime */
460 0 : JSObject* global = JS::CurrentGlobalOrNull(aCx);
461 0 : if (!(js::GetObjectClass(global)->flags & JSCLASS_DOM_GLOBAL)) {
462 0 : return nullptr;
463 : }
464 :
465 : /* Check to see whether the interface objects are already installed */
466 0 : ProtoAndIfaceCache& protoAndIfaceCache = *GetProtoAndIfaceCache(global);
467 0 : if (!protoAndIfaceCache.HasEntryInSlot(constructors::id::SVGCircleElement)) {
468 0 : JS::Rooted<JSObject*> rootedGlobal(aCx, global);
469 0 : CreateInterfaceObjects(aCx, rootedGlobal, protoAndIfaceCache, aDefineOnGlobal);
470 : }
471 :
472 : /*
473 : * The object might _still_ be null, but that's OK.
474 : *
475 : * Calling fromMarkedLocation() is safe because protoAndIfaceCache is
476 : * traced by TraceProtoAndIfaceCache() and its contents are never
477 : * changed after they have been set.
478 : *
479 : * Calling address() avoids the read read barrier that does gray
480 : * unmarking, but it's not possible for the object to be gray here.
481 : */
482 :
483 0 : const JS::Heap<JSObject*>& entrySlot = protoAndIfaceCache.EntrySlotMustExist(constructors::id::SVGCircleElement);
484 0 : MOZ_ASSERT(JS::ObjectIsNotGray(entrySlot));
485 0 : return JS::Handle<JSObject*>::fromMarkedLocation(entrySlot.address());
486 : }
487 :
488 : JSObject*
489 0 : GetConstructorObject(JSContext* aCx)
490 : {
491 0 : return GetConstructorObjectHandle(aCx);
492 : }
493 :
494 : } // namespace SVGCircleElementBinding
495 :
496 :
497 :
498 : } // namespace dom
499 : } // namespace mozilla
|