-
andersca authored
Reviewed by Geoff. Make sure that bindings instances get correct root objects. * JavaScriptCore.exp: * bindings/NP_jsobject.cpp: (listFromVariantArgs): (_NPN_InvokeDefault): (_NPN_Invoke): (_NPN_SetProperty): * bindings/c/c_instance.cpp: (KJS::Bindings::CInstance::invokeMethod): (KJS::Bindings::CInstance::invokeDefaultMethod): * bindings/c/c_runtime.cpp: (KJS::Bindings::CField::valueFromInstance): * bindings/c/c_utility.cpp: (KJS::Bindings::convertNPVariantToValue): * bindings/c/c_utility.h: * bindings/objc/objc_instance.mm: (ObjcInstance::invokeMethod): (ObjcInstance::invokeDefaultMethod): (ObjcInstance::getValueOfUndefinedField): * bindings/objc/objc_runtime.mm: (ObjcField::valueFromInstance): (ObjcArray::valueAt): * bindings/objc/objc_utility.h: * bindings/objc/objc_utility.mm: (KJS::Bindings::convertObjcValueToValue): * bindings/runtime.h: WebCore: Reviewed by Geoff. Pass the root object to methods that end up creating new ObjcInstance objects. * bindings/objc/WebScriptObject.mm: (listFromNSArray): (-[WebScriptObject callWebScriptMethod:withArguments:]): (-[WebScriptObject evaluateWebScript:]): (-[WebScriptObject setValue:forKey:]): (-[WebScriptObject valueForKey:]): (-[WebScriptObject removeWebScriptKey:]): (-[WebScriptObject setWebScriptValueAtIndex:value:]): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23512 268f45cc-cd09-0410-ab3c-d52691b4dbfc
89c5d677