Lines Matching defs:npObject
62 NPObject* NPRuntimeObjectMap::getOrCreateNPObject(JSGlobalData& globalData, JSObject* jsObject)
64 // If this is a JSNPObject, we can just get its underlying NPObject.
67 NPObject* npObject = jsNPObject->npObject();
69 retainNPObject(npObject);
70 return npObject;
92 JSObject* NPRuntimeObjectMap::getOrCreateJSObject(JSGlobalObject* globalObject, NPObject* npObject)
95 if (NPJSObject::isNPJSObject(npObject))
96 return NPJSObject::toNPJSObject(npObject)->jsObject();
98 if (JSNPObject* jsNPObject = m_jsNPObjects.get(npObject))
101 JSNPObject* jsNPObject = new (&globalObject->globalData()) JSNPObject(globalObject, this, npObject);
102 m_jsNPObjects.set(npObject, jsNPObject);
110 ASSERT(m_jsNPObjects.contains(jsNPObject->npObject()));
111 m_jsNPObjects.remove(jsNPObject->npObject());
176 NPObject* npObject = getOrCreateNPObject(exec->globalData(), asObject(value));
177 OBJECT_TO_NPVARIANT(npObject, variant);
184 bool NPRuntimeObjectMap::evaluate(NPObject* npObject, const String&scriptString, NPVariant* result)
193 JSValue thisValue = getOrCreateJSObject(globalObject.get(), npObject);