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