Bug 884410 - Handlify the JS_ResolveStandardClass interface; r=jonco

--HG--
extra : rebase_source : 3ba45931aad97fb7cbca517ae9bccb974d42e57a
This commit is contained in:
Terrence Cole 2013-06-13 17:10:00 -07:00
parent 0ae404a1ee
commit a1b85dbc2a
7 changed files with 7 additions and 8 deletions

View File

@ -163,7 +163,7 @@ nsXBLDocGlobalObject_finalize(JSFreeOp *fop, JSObject *obj)
}
static JSBool
nsXBLDocGlobalObject_resolve(JSContext *cx, JSHandleObject obj, JSHandleId id)
nsXBLDocGlobalObject_resolve(JSContext *cx, JS::HandleObject obj, JS::HandleId id)
{
JSBool did_resolve = JS_FALSE;
return JS_ResolveStandardClass(cx, obj, id, &did_resolve);

View File

@ -103,7 +103,7 @@ nsXULPDGlobalObject_finalize(JSFreeOp *fop, JSObject *obj)
JSBool
nsXULPDGlobalObject_resolve(JSContext *cx, JSHandleObject obj, JSHandleId id)
nsXULPDGlobalObject_resolve(JSContext *cx, JS::HandleObject obj, JS::HandleId id)
{
JSBool did_resolve = JS_FALSE;

View File

@ -812,7 +812,7 @@ private:
}
static JSBool
Resolve(JSContext* aCx, JSHandleObject aObj, JSHandleId aId, unsigned aFlags,
Resolve(JSContext* aCx, JS::HandleObject aObj, JS::HandleId aId, unsigned aFlags,
JS::MutableHandle<JSObject*> aObjp)
{
JSBool resolved;

View File

@ -1914,9 +1914,8 @@ static const JSStdName object_prototype_names[] = {
};
JS_PUBLIC_API(JSBool)
JS_ResolveStandardClass(JSContext *cx, JSObject *objArg, jsid id, JSBool *resolved)
JS_ResolveStandardClass(JSContext *cx, HandleObject obj, HandleId id, JSBool *resolved)
{
RootedObject obj(cx, objArg);
JSRuntime *rt;
JSAtom *atom;
const JSStdName *stdnm;

View File

@ -2101,7 +2101,7 @@ JS_InitStandardClasses(JSContext *cx, JSObject *obj);
* loops any classes not yet resolved lazily.
*/
extern JS_PUBLIC_API(JSBool)
JS_ResolveStandardClass(JSContext *cx, JSObject *obj, jsid id,
JS_ResolveStandardClass(JSContext *cx, JS::HandleObject obj, JS::HandleId id,
JSBool *resolved);
extern JS_PUBLIC_API(JSBool)

View File

@ -2942,7 +2942,7 @@ sandbox_enumerate(JSContext *cx, JSHandleObject obj)
}
static JSBool
sandbox_resolve(JSContext *cx, JSHandleObject obj, JSHandleId id)
sandbox_resolve(JSContext *cx, HandleObject obj, HandleId id)
{
JSBool resolved;
return JS_ResolveStandardClass(cx, obj, id, &resolved);

View File

@ -105,7 +105,7 @@ XPCJSContextStack::HasJSContext(JSContext *cx)
}
static JSBool
SafeGlobalResolve(JSContext *cx, JSHandleObject obj, JSHandleId id)
SafeGlobalResolve(JSContext *cx, HandleObject obj, HandleId id)
{
JSBool resolved;
return JS_ResolveStandardClass(cx, obj, id, &resolved);