diff options
Diffstat (limited to 'WebCore/bridge/objc')
-rw-r--r-- | WebCore/bridge/objc/ObjCRuntimeObject.h | 2 | ||||
-rw-r--r-- | WebCore/bridge/objc/ObjCRuntimeObject.mm | 4 | ||||
-rw-r--r-- | WebCore/bridge/objc/objc_class.mm | 2 | ||||
-rw-r--r-- | WebCore/bridge/objc/objc_instance.mm | 8 | ||||
-rw-r--r-- | WebCore/bridge/objc/objc_runtime.h | 5 | ||||
-rw-r--r-- | WebCore/bridge/objc/objc_runtime.mm | 4 |
6 files changed, 13 insertions, 12 deletions
diff --git a/WebCore/bridge/objc/ObjCRuntimeObject.h b/WebCore/bridge/objc/ObjCRuntimeObject.h index 5c44157..78550b9 100644 --- a/WebCore/bridge/objc/ObjCRuntimeObject.h +++ b/WebCore/bridge/objc/ObjCRuntimeObject.h @@ -35,7 +35,7 @@ class ObjcInstance; class ObjCRuntimeObject : public RuntimeObject { public: - ObjCRuntimeObject(ExecState*, PassRefPtr<ObjcInstance>); + ObjCRuntimeObject(ExecState*, JSGlobalObject*, PassRefPtr<ObjcInstance>); virtual ~ObjCRuntimeObject(); ObjcInstance* getInternalObjCInstance() const; diff --git a/WebCore/bridge/objc/ObjCRuntimeObject.mm b/WebCore/bridge/objc/ObjCRuntimeObject.mm index c7c4e98..d9afdf2 100644 --- a/WebCore/bridge/objc/ObjCRuntimeObject.mm +++ b/WebCore/bridge/objc/ObjCRuntimeObject.mm @@ -33,8 +33,8 @@ namespace Bindings { const ClassInfo ObjCRuntimeObject::s_info = { "ObjCRuntimeObject", &RuntimeObject::s_info, 0, 0 }; -ObjCRuntimeObject::ObjCRuntimeObject(ExecState* exec, PassRefPtr<ObjcInstance> instance) - : RuntimeObject(exec, instance) +ObjCRuntimeObject::ObjCRuntimeObject(ExecState* exec, JSGlobalObject* globalObject, PassRefPtr<ObjcInstance> instance) + : RuntimeObject(exec, globalObject, instance) { } diff --git a/WebCore/bridge/objc/objc_class.mm b/WebCore/bridge/objc/objc_class.mm index 5f3677e..62f0a34 100644 --- a/WebCore/bridge/objc/objc_class.mm +++ b/WebCore/bridge/objc/objc_class.mm @@ -246,7 +246,7 @@ JSValue ObjcClass::fallbackObject(ExecState* exec, Instance* instance, const Ide if (![targetObject respondsToSelector:@selector(invokeUndefinedMethodFromWebScript:withArguments:)]) return jsUndefined(); - return new (exec) ObjcFallbackObjectImp(exec, objcInstance, propertyName); + return new (exec) ObjcFallbackObjectImp(exec, exec->lexicalGlobalObject(), objcInstance, propertyName); } } diff --git a/WebCore/bridge/objc/objc_instance.mm b/WebCore/bridge/objc/objc_instance.mm index de330ae..d75a758 100644 --- a/WebCore/bridge/objc/objc_instance.mm +++ b/WebCore/bridge/objc/objc_instance.mm @@ -65,7 +65,7 @@ static NSMapTable *createInstanceWrapperCache() RuntimeObject* ObjcInstance::newRuntimeObject(ExecState* exec) { - return new (exec) ObjCRuntimeObject(exec, this); + return new (exec) ObjCRuntimeObject(exec, exec->lexicalGlobalObject(), this); } void ObjcInstance::setGlobalException(NSString* exception, JSGlobalObject* exceptionEnvironment) @@ -176,8 +176,8 @@ bool ObjcInstance::supportsInvokeDefaultMethod() const class ObjCRuntimeMethod : public RuntimeMethod { public: - ObjCRuntimeMethod(ExecState* exec, const Identifier& name, Bindings::MethodList& list) - : RuntimeMethod(exec, name, list) + ObjCRuntimeMethod(ExecState* exec, JSGlobalObject* globalObject, const Identifier& name, Bindings::MethodList& list) + : RuntimeMethod(exec, globalObject, name, list) { } @@ -191,7 +191,7 @@ const ClassInfo ObjCRuntimeMethod::s_info = { "ObjCRuntimeMethod", &RuntimeMetho JSValue ObjcInstance::getMethod(ExecState* exec, const Identifier& propertyName) { MethodList methodList = getClass()->methodsNamed(propertyName, this); - return new (exec) ObjCRuntimeMethod(exec, propertyName, methodList); + return new (exec) ObjCRuntimeMethod(exec, exec->lexicalGlobalObject(), propertyName, methodList); } JSValue ObjcInstance::invokeMethod(ExecState* exec, RuntimeMethod* runtimeMethod, const ArgList &args) diff --git a/WebCore/bridge/objc/objc_runtime.h b/WebCore/bridge/objc/objc_runtime.h index 35485ad..60fbdac 100644 --- a/WebCore/bridge/objc/objc_runtime.h +++ b/WebCore/bridge/objc/objc_runtime.h @@ -29,6 +29,7 @@ #include "Bridge.h" #include "objc_header.h" #include <runtime/JSGlobalObject.h> +#include <runtime/JSObjectWithGlobalObject.h> #include <wtf/RetainPtr.h> namespace JSC { @@ -89,9 +90,9 @@ private: RetainPtr<ObjectStructPtr> _array; }; -class ObjcFallbackObjectImp : public JSObject { +class ObjcFallbackObjectImp : public JSObjectWithGlobalObject { public: - ObjcFallbackObjectImp(ExecState*, ObjcInstance*, const Identifier& propertyName); + ObjcFallbackObjectImp(ExecState*, JSGlobalObject*, ObjcInstance*, const Identifier& propertyName); static const ClassInfo s_info; diff --git a/WebCore/bridge/objc/objc_runtime.mm b/WebCore/bridge/objc/objc_runtime.mm index f845a00..5605333 100644 --- a/WebCore/bridge/objc/objc_runtime.mm +++ b/WebCore/bridge/objc/objc_runtime.mm @@ -189,9 +189,9 @@ unsigned int ObjcArray::getLength() const const ClassInfo ObjcFallbackObjectImp::s_info = { "ObjcFallbackObject", 0, 0, 0 }; -ObjcFallbackObjectImp::ObjcFallbackObjectImp(ExecState* exec, ObjcInstance* i, const Identifier& propertyName) +ObjcFallbackObjectImp::ObjcFallbackObjectImp(ExecState* exec, JSGlobalObject* globalObject, ObjcInstance* i, const Identifier& propertyName) // FIXME: deprecatedGetDOMStructure uses the prototype off of the wrong global object - : JSObject(deprecatedGetDOMStructure<ObjcFallbackObjectImp>(exec)) + : JSObjectWithGlobalObject(globalObject, deprecatedGetDOMStructure<ObjcFallbackObjectImp>(exec)) , _instance(i) , _item(propertyName) { |