Lines Matching defs:rootObject
54 static void getListFromVariantArgs(ExecState* exec, const NPVariant* args, unsigned argCount, RootObject* rootObject, MarkedArgumentBuffer& aList)
57 aList.append(convertNPVariantToValue(exec, &args[i], rootObject));
69 if (obj->rootObject && obj->rootObject->isValid())
70 obj->rootObject->gcUnprotect(obj->imp);
72 if (obj->rootObject)
73 obj->rootObject->deref();
84 NPObject* _NPN_CreateScriptObject(NPP npp, JSObject* imp, PassRefPtr<RootObject> rootObject)
88 obj->rootObject = rootObject.releaseRef();
90 if (obj->rootObject)
91 obj->rootObject->gcProtect(imp);
110 RootObject* rootObject = obj->rootObject;
111 if (!rootObject || !rootObject->isValid())
114 ExecState* exec = rootObject->globalObject()->globalExec();
125 getListFromVariantArgs(exec, args, argCount, rootObject, argList);
126 ProtectedPtr<JSGlobalObject> globalObject = rootObject->globalObject();
162 RootObject* rootObject = obj->rootObject;
163 if (!rootObject || !rootObject->isValid())
165 ExecState* exec = rootObject->globalObject()->globalExec();
175 getListFromVariantArgs(exec, args, argCount, rootObject, argList);
176 ProtectedPtr<JSGlobalObject> globalObject = rootObject->globalObject();
199 RootObject* rootObject = obj->rootObject;
200 if (!rootObject || !rootObject->isValid())
207 ExecState* exec = rootObject->globalObject()->globalExec();
210 ProtectedPtr<JSGlobalObject> globalObject = rootObject->globalObject();
238 RootObject* rootObject = obj->rootObject;
239 if (!rootObject || !rootObject->isValid())
242 ExecState* exec = rootObject->globalObject()->globalExec();
272 RootObject* rootObject = obj->rootObject;
273 if (!rootObject || !rootObject->isValid())
276 ExecState* exec = rootObject->globalObject()->globalExec();
282 obj->imp->put(exec, identifierFromNPIdentifier(i->string()), convertNPVariantToValue(exec, variant, rootObject), slot);
284 obj->imp->put(exec, i->number(), convertNPVariantToValue(exec, variant, rootObject));
300 RootObject* rootObject = obj->rootObject;
301 if (!rootObject || !rootObject->isValid())
304 ExecState* exec = rootObject->globalObject()->globalExec();
335 RootObject* rootObject = obj->rootObject;
336 if (!rootObject || !rootObject->isValid())
339 ExecState* exec = rootObject->globalObject()->globalExec();
368 RootObject* rootObject = obj->rootObject;
369 if (!rootObject || !rootObject->isValid())
372 ExecState* exec = rootObject->globalObject()->globalExec();
397 RootObject* rootObject = obj->rootObject;
398 if (!rootObject || !rootObject->isValid())
401 ExecState* exec = rootObject->globalObject()->globalExec();
434 RootObject* rootObject = obj->rootObject;
435 if (!rootObject || !rootObject->isValid())
438 ExecState* exec = rootObject->globalObject()->globalExec();
449 getListFromVariantArgs(exec, args, argCount, rootObject, argList);
450 ProtectedPtr<JSGlobalObject> globalObject = rootObject->globalObject();