@@ -170,7 +170,7 @@ InstallXBLField(JSContext* cx,
170170 {
171171 JSAutoCompartment ac (cx, callee);
172172
173- JS ::Rooted<JSObject*> xblProto (cx);
173+ js ::Rooted<JSObject*> xblProto (cx);
174174 xblProto = &js::GetFunctionNativeReserved (callee, XBLPROTO_SLOT ).toObject ();
175175
176176 JS ::Value name = js::GetFunctionNativeReserved (callee, FIELD_SLOT );
@@ -220,16 +220,16 @@ FieldGetterImpl(JSContext *cx, JS::CallArgs args)
220220 const JS ::Value &thisv = args.thisv ();
221221 MOZ_ASSERT (ValueHasISupportsPrivate (thisv));
222222
223- JS ::Rooted<JSObject*> thisObj (cx, &thisv.toObject ());
223+ js ::Rooted<JSObject*> thisObj (cx, &thisv.toObject ());
224224
225225 // We should be in the compartment of |this|. If we got here via nativeCall,
226226 // |this| is not same-compartment with |callee|, and it's possible via
227227 // asymmetric security semantics that |args.calleev()| is actually a security
228228 // wrapper. In this case, we know we want to do an unsafe unwrap, and
229229 // InstallXBLField knows how to handle cross-compartment pointers.
230230 bool installed = false ;
231- JS ::Rooted<JSObject*> callee (cx, js::UnwrapObject (&args.calleev ().toObject ()));
232- JS ::Rooted<jsid> id (cx);
231+ js ::Rooted<JSObject*> callee (cx, js::UnwrapObject (&args.calleev ().toObject ()));
232+ js ::Rooted<jsid> id (cx);
233233 if (!InstallXBLField (cx, callee, thisObj, id.address (), &installed)) {
234234 return false ;
235235 }
@@ -239,7 +239,7 @@ FieldGetterImpl(JSContext *cx, JS::CallArgs args)
239239 return true ;
240240 }
241241
242- JS ::Rooted<JS ::Value> v (cx);
242+ js ::Rooted<JS ::Value> v (cx);
243243 if (!JS_GetPropertyById (cx, thisObj, id, v.address ())) {
244244 return false ;
245245 }
@@ -261,22 +261,22 @@ FieldSetterImpl(JSContext *cx, JS::CallArgs args)
261261 const JS ::Value &thisv = args.thisv ();
262262 MOZ_ASSERT (ValueHasISupportsPrivate (thisv));
263263
264- JS ::Rooted<JSObject*> thisObj (cx, &thisv.toObject ());
264+ js ::Rooted<JSObject*> thisObj (cx, &thisv.toObject ());
265265
266266 // We should be in the compartment of |this|. If we got here via nativeCall,
267267 // |this| is not same-compartment with |callee|, and it's possible via
268268 // asymmetric security semantics that |args.calleev()| is actually a security
269269 // wrapper. In this case, we know we want to do an unsafe unwrap, and
270270 // InstallXBLField knows how to handle cross-compartment pointers.
271271 bool installed = false ;
272- JS ::Rooted<JSObject*> callee (cx, js::UnwrapObject (&args.calleev ().toObject ()));
273- JS ::Rooted<jsid> id (cx);
272+ js ::Rooted<JSObject*> callee (cx, js::UnwrapObject (&args.calleev ().toObject ()));
273+ js ::Rooted<jsid> id (cx);
274274 if (!InstallXBLField (cx, callee, thisObj, id.address (), &installed)) {
275275 return false ;
276276 }
277277
278278 if (installed) {
279- JS ::Rooted<JS ::Value> v (cx,
279+ js ::Rooted<JS ::Value> v (cx,
280280 args.length () > 0 ? args[0 ] : JS::UndefinedValue ());
281281 if (!::JS_SetPropertyById (cx, thisObj, id, v.address ())) {
282282 return false ;
0 commit comments