mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 884410 - Handlify the JS_ResolveStandardClass interface; r=jonco
--HG-- extra : rebase_source : 3ba45931aad97fb7cbca517ae9bccb974d42e57a
This commit is contained in:
parent
0ae404a1ee
commit
a1b85dbc2a
@ -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);
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user