summaryrefslogtreecommitdiffstats
path: root/WebCore/bridge
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2010-05-26 10:11:43 +0100
committerSteve Block <steveblock@google.com>2010-05-27 11:14:42 +0100
commite78cbe89e6f337f2f1fe40315be88f742b547151 (patch)
treed778000b84a04f24bbad50c7fa66244365e960e9 /WebCore/bridge
parent7b582e96e4e909ed7dba1e07153d20fbddaec3f7 (diff)
downloadexternal_webkit-e78cbe89e6f337f2f1fe40315be88f742b547151.zip
external_webkit-e78cbe89e6f337f2f1fe40315be88f742b547151.tar.gz
external_webkit-e78cbe89e6f337f2f1fe40315be88f742b547151.tar.bz2
Merge WebKit at r60074: Initial merge by git
Change-Id: I18a2dc5439e36c928351ea829d8fb4e39b062fc7
Diffstat (limited to 'WebCore/bridge')
-rw-r--r--WebCore/bridge/c/CRuntimeObject.cpp4
-rw-r--r--WebCore/bridge/c/CRuntimeObject.h2
-rw-r--r--WebCore/bridge/c/c_instance.cpp8
-rw-r--r--WebCore/bridge/jni/jsc/JavaInstanceJSC.cpp8
-rw-r--r--WebCore/bridge/jni/jsc/JavaRuntimeObject.cpp4
-rw-r--r--WebCore/bridge/jni/jsc/JavaRuntimeObject.h2
-rw-r--r--WebCore/bridge/jsc/BridgeJSC.cpp2
-rw-r--r--WebCore/bridge/objc/ObjCRuntimeObject.h2
-rw-r--r--WebCore/bridge/objc/ObjCRuntimeObject.mm4
-rw-r--r--WebCore/bridge/objc/objc_class.mm2
-rw-r--r--WebCore/bridge/objc/objc_instance.mm8
-rw-r--r--WebCore/bridge/objc/objc_runtime.h5
-rw-r--r--WebCore/bridge/objc/objc_runtime.mm4
-rw-r--r--WebCore/bridge/qt/qt_instance.cpp10
-rw-r--r--WebCore/bridge/qt/qt_pixmapruntime.cpp10
-rw-r--r--WebCore/bridge/qt/qt_runtime.cpp4
-rw-r--r--WebCore/bridge/runtime_method.cpp4
-rw-r--r--WebCore/bridge/runtime_method.h2
-rw-r--r--WebCore/bridge/runtime_object.cpp8
-rw-r--r--WebCore/bridge/runtime_object.h7
20 files changed, 51 insertions, 49 deletions
diff --git a/WebCore/bridge/c/CRuntimeObject.cpp b/WebCore/bridge/c/CRuntimeObject.cpp
index 47425a2..4be4982 100644
--- a/WebCore/bridge/c/CRuntimeObject.cpp
+++ b/WebCore/bridge/c/CRuntimeObject.cpp
@@ -35,8 +35,8 @@ namespace Bindings {
const ClassInfo CRuntimeObject::s_info = { "CRuntimeObject", &RuntimeObject::s_info, 0, 0 };
-CRuntimeObject::CRuntimeObject(ExecState* exec, PassRefPtr<CInstance> instance)
- : RuntimeObject(exec, instance)
+CRuntimeObject::CRuntimeObject(ExecState* exec, JSGlobalObject* globalObject, PassRefPtr<CInstance> instance)
+ : RuntimeObject(exec, globalObject, instance)
{
}
diff --git a/WebCore/bridge/c/CRuntimeObject.h b/WebCore/bridge/c/CRuntimeObject.h
index b53387a..bcd39d3 100644
--- a/WebCore/bridge/c/CRuntimeObject.h
+++ b/WebCore/bridge/c/CRuntimeObject.h
@@ -37,7 +37,7 @@ class CInstance;
class CRuntimeObject : public RuntimeObject {
public:
- CRuntimeObject(ExecState*, PassRefPtr<CInstance>);
+ CRuntimeObject(ExecState*, JSGlobalObject*, PassRefPtr<CInstance>);
virtual ~CRuntimeObject();
CInstance* getInternalCInstance() const;
diff --git a/WebCore/bridge/c/c_instance.cpp b/WebCore/bridge/c/c_instance.cpp
index 7dbc1d9..e985059 100644
--- a/WebCore/bridge/c/c_instance.cpp
+++ b/WebCore/bridge/c/c_instance.cpp
@@ -93,7 +93,7 @@ CInstance::~CInstance()
RuntimeObject* CInstance::newRuntimeObject(ExecState* exec)
{
- return new (exec) CRuntimeObject(exec, this);
+ return new (exec) CRuntimeObject(exec, exec->lexicalGlobalObject(), this);
}
Class *CInstance::getClass() const
@@ -110,8 +110,8 @@ bool CInstance::supportsInvokeDefaultMethod() const
class CRuntimeMethod : public RuntimeMethod {
public:
- CRuntimeMethod(ExecState* exec, const Identifier& name, Bindings::MethodList& list)
- : RuntimeMethod(exec, name, list)
+ CRuntimeMethod(ExecState* exec, JSGlobalObject* globalObject, const Identifier& name, Bindings::MethodList& list)
+ : RuntimeMethod(exec, globalObject, name, list)
{
}
@@ -125,7 +125,7 @@ const ClassInfo CRuntimeMethod::s_info = { "CRuntimeMethod", &RuntimeMethod::s_i
JSValue CInstance::getMethod(ExecState* exec, const Identifier& propertyName)
{
MethodList methodList = getClass()->methodsNamed(propertyName, this);
- return new (exec) CRuntimeMethod(exec, propertyName, methodList);
+ return new (exec) CRuntimeMethod(exec, exec->lexicalGlobalObject(), propertyName, methodList);
}
JSValue CInstance::invokeMethod(ExecState* exec, RuntimeMethod* runtimeMethod, const ArgList& args)
diff --git a/WebCore/bridge/jni/jsc/JavaInstanceJSC.cpp b/WebCore/bridge/jni/jsc/JavaInstanceJSC.cpp
index 8959189..2fae747 100644
--- a/WebCore/bridge/jni/jsc/JavaInstanceJSC.cpp
+++ b/WebCore/bridge/jni/jsc/JavaInstanceJSC.cpp
@@ -65,7 +65,7 @@ JavaInstance::~JavaInstance()
RuntimeObject* JavaInstance::newRuntimeObject(ExecState* exec)
{
- return new (exec) JavaRuntimeObject(exec, this);
+ return new (exec) JavaRuntimeObject(exec, exec->lexicalGlobalObject(), this);
}
#define NUM_LOCAL_REFS 64
@@ -118,8 +118,8 @@ JSValue JavaInstance::booleanValue() const
class JavaRuntimeMethod : public RuntimeMethod {
public:
- JavaRuntimeMethod(ExecState* exec, const Identifier& name, Bindings::MethodList& list)
- : RuntimeMethod(exec, name, list)
+ JavaRuntimeMethod(ExecState* exec, JSGlobalObject* globalObject, const Identifier& name, Bindings::MethodList& list)
+ : RuntimeMethod(exec, globalObject, name, list)
{
}
@@ -133,7 +133,7 @@ const ClassInfo JavaRuntimeMethod::s_info = { "JavaRuntimeMethod", &RuntimeMetho
JSValue JavaInstance::getMethod(ExecState* exec, const Identifier& propertyName)
{
MethodList methodList = getClass()->methodsNamed(propertyName, this);
- return new (exec) JavaRuntimeMethod(exec, propertyName, methodList);
+ return new (exec) JavaRuntimeMethod(exec, exec->lexicalGlobalObject(), propertyName, methodList);
}
JSValue JavaInstance::invokeMethod(ExecState* exec, RuntimeMethod* runtimeMethod, const ArgList &args)
diff --git a/WebCore/bridge/jni/jsc/JavaRuntimeObject.cpp b/WebCore/bridge/jni/jsc/JavaRuntimeObject.cpp
index dc58b71..6270f9f 100644
--- a/WebCore/bridge/jni/jsc/JavaRuntimeObject.cpp
+++ b/WebCore/bridge/jni/jsc/JavaRuntimeObject.cpp
@@ -33,8 +33,8 @@ namespace Bindings {
const ClassInfo JavaRuntimeObject::s_info = { "JavaRuntimeObject", &RuntimeObject::s_info, 0, 0 };
-JavaRuntimeObject::JavaRuntimeObject(ExecState* exec, PassRefPtr<JavaInstance> instance)
- : RuntimeObject(exec, instance)
+JavaRuntimeObject::JavaRuntimeObject(ExecState* exec, JSGlobalObject* globalObject, PassRefPtr<JavaInstance> instance)
+ : RuntimeObject(exec, globalObject, instance)
{
}
diff --git a/WebCore/bridge/jni/jsc/JavaRuntimeObject.h b/WebCore/bridge/jni/jsc/JavaRuntimeObject.h
index d9bf693..0e400f4 100644
--- a/WebCore/bridge/jni/jsc/JavaRuntimeObject.h
+++ b/WebCore/bridge/jni/jsc/JavaRuntimeObject.h
@@ -35,7 +35,7 @@ class JavaInstance;
class JavaRuntimeObject : public RuntimeObject {
public:
- JavaRuntimeObject(ExecState*, PassRefPtr<JavaInstance>);
+ JavaRuntimeObject(ExecState*, JSGlobalObject*, PassRefPtr<JavaInstance>);
virtual ~JavaRuntimeObject();
JavaInstance* getInternalJavaInstance() const;
diff --git a/WebCore/bridge/jsc/BridgeJSC.cpp b/WebCore/bridge/jsc/BridgeJSC.cpp
index 3d8f62d..d44cdb5 100644
--- a/WebCore/bridge/jsc/BridgeJSC.cpp
+++ b/WebCore/bridge/jsc/BridgeJSC.cpp
@@ -98,7 +98,7 @@ RuntimeObject* Instance::createRuntimeObject(ExecState* exec)
RuntimeObject* Instance::newRuntimeObject(ExecState* exec)
{
JSLock lock(SilenceAssertionsOnly);
- return new (exec)RuntimeObject(exec, this);
+ return new (exec)RuntimeObject(exec, exec->lexicalGlobalObject(), this);
}
void Instance::willDestroyRuntimeObject()
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)
{
diff --git a/WebCore/bridge/qt/qt_instance.cpp b/WebCore/bridge/qt/qt_instance.cpp
index 97bb34b..c78bbbf 100644
--- a/WebCore/bridge/qt/qt_instance.cpp
+++ b/WebCore/bridge/qt/qt_instance.cpp
@@ -46,7 +46,7 @@ static QObjectInstanceMap cachedInstances;
// Derived RuntimeObject
class QtRuntimeObject : public RuntimeObject {
public:
- QtRuntimeObject(ExecState*, PassRefPtr<Instance>);
+ QtRuntimeObject(ExecState*, JSGlobalObject*, PassRefPtr<Instance>);
static const ClassInfo s_info;
@@ -72,8 +72,8 @@ private:
const ClassInfo QtRuntimeObject::s_info = { "QtRuntimeObject", &RuntimeObject::s_info, 0, 0 };
-QtRuntimeObject::QtRuntimeObject(ExecState* exec, PassRefPtr<Instance> instance)
- : RuntimeObject(exec, WebCore::deprecatedGetDOMStructure<QtRuntimeObject>(exec), instance)
+QtRuntimeObject::QtRuntimeObject(ExecState* exec, JSGlobalObject* globalObject, PassRefPtr<Instance> instance)
+ : RuntimeObject(exec, globalObject, WebCore::deprecatedGetDOMStructure<QtRuntimeObject>(exec), instance)
{
}
@@ -182,7 +182,7 @@ Class* QtInstance::getClass() const
RuntimeObject* QtInstance::newRuntimeObject(ExecState* exec)
{
JSLock lock(SilenceAssertionsOnly);
- return new (exec) QtRuntimeObject(exec, this);
+ return new (exec) QtRuntimeObject(exec, exec->lexicalGlobalObject(), this);
}
void QtInstance::markAggregate(MarkStack& markStack)
@@ -245,7 +245,7 @@ JSValue QtInstance::getMethod(ExecState* exec, const Identifier& propertyName)
if (!getClass())
return jsNull();
MethodList methodList = m_class->methodsNamed(propertyName, this);
- return new (exec) RuntimeMethod(exec, propertyName, methodList);
+ return new (exec) RuntimeMethod(exec, exec->lexicalGlobalObject(), propertyName, methodList);
}
JSValue QtInstance::invokeMethod(ExecState*, RuntimeMethod*, const ArgList&)
diff --git a/WebCore/bridge/qt/qt_pixmapruntime.cpp b/WebCore/bridge/qt/qt_pixmapruntime.cpp
index 803316d..5b6bc83 100644
--- a/WebCore/bridge/qt/qt_pixmapruntime.cpp
+++ b/WebCore/bridge/qt/qt_pixmapruntime.cpp
@@ -145,7 +145,7 @@ struct QtPixmapMetaData {
// Derived RuntimeObject
class QtPixmapRuntimeObject : public RuntimeObject {
public:
- QtPixmapRuntimeObject(ExecState*, PassRefPtr<Instance>);
+ QtPixmapRuntimeObject(ExecState*, JSGlobalObject*, PassRefPtr<Instance>);
static const ClassInfo s_info;
@@ -161,8 +161,8 @@ private:
virtual const ClassInfo* classInfo() const { return &s_info; }
};
-QtPixmapRuntimeObject::QtPixmapRuntimeObject(ExecState* exec, PassRefPtr<Instance> instance)
- : RuntimeObject(exec, WebCore::deprecatedGetDOMStructure<QtPixmapRuntimeObject>(exec), instance)
+QtPixmapRuntimeObject::QtPixmapRuntimeObject(ExecState* exec, JSGlobalObject* globalObject, PassRefPtr<Instance> instance)
+ : RuntimeObject(exec, globalObject, WebCore::deprecatedGetDOMStructure<QtPixmapRuntimeObject>(exec), instance)
{
}
@@ -181,7 +181,7 @@ Class* QtPixmapInstance::getClass() const
JSValue QtPixmapInstance::getMethod(ExecState* exec, const Identifier& propertyName)
{
MethodList methodList = getClass()->methodsNamed(propertyName, this);
- return new (exec) RuntimeMethod(exec, propertyName, methodList);
+ return new (exec) RuntimeMethod(exec, exec->lexicalGlobalObject(), propertyName, methodList);
}
JSValue QtPixmapInstance::invokeMethod(ExecState* exec, RuntimeMethod* runtimeMethod, const ArgList& args)
@@ -349,7 +349,7 @@ returnEmptyVariant:
JSObject* QtPixmapInstance::createRuntimeObject(ExecState* exec, PassRefPtr<RootObject> root, const QVariant& data)
{
JSLock lock(SilenceAssertionsOnly);
- return new(exec) QtPixmapRuntimeObject(exec, new QtPixmapInstance(root, data));
+ return new(exec) QtPixmapRuntimeObject(exec, exec->lexicalGlobalObject(), new QtPixmapInstance(root, data));
}
bool QtPixmapInstance::canHandle(QMetaType::Type hint)
diff --git a/WebCore/bridge/qt/qt_runtime.cpp b/WebCore/bridge/qt/qt_runtime.cpp
index 4524d97..7d82f4c 100644
--- a/WebCore/bridge/qt/qt_runtime.cpp
+++ b/WebCore/bridge/qt/qt_runtime.cpp
@@ -825,7 +825,7 @@ JSValue convertQVariantToValue(ExecState* exec, PassRefPtr<RootObject> root, con
RefPtr<JSC::RegExp> regExp = JSC::RegExp::create(&exec->globalData(), pattern, uflags);
if (regExp->isValid())
- return new (exec) RegExpObject(exec->lexicalGlobalObject()->regExpStructure(), regExp.release());
+ return new (exec) RegExpObject(exec->lexicalGlobalObject(), exec->lexicalGlobalObject()->regExpStructure(), regExp.release());
else
return jsNull();
}
@@ -947,7 +947,7 @@ JSValue convertQVariantToValue(ExecState* exec, PassRefPtr<RootObject> root, con
const ClassInfo QtRuntimeMethod::s_info = { "QtRuntimeMethod", 0, 0, 0 };
QtRuntimeMethod::QtRuntimeMethod(QtRuntimeMethodData* dd, ExecState* exec, const Identifier& ident, PassRefPtr<QtInstance> inst)
- : InternalFunction(&exec->globalData(), deprecatedGetDOMStructure<QtRuntimeMethod>(exec), ident)
+ : InternalFunction(&exec->globalData(), exec->lexicalGlobalObject(), deprecatedGetDOMStructure<QtRuntimeMethod>(exec), ident)
, d_ptr(dd)
{
QW_D(QtRuntimeMethod);
diff --git a/WebCore/bridge/runtime_method.cpp b/WebCore/bridge/runtime_method.cpp
index 29145b6..cd2194a 100644
--- a/WebCore/bridge/runtime_method.cpp
+++ b/WebCore/bridge/runtime_method.cpp
@@ -43,11 +43,11 @@ ASSERT_CLASS_FITS_IN_CELL(RuntimeMethod);
const ClassInfo RuntimeMethod::s_info = { "RuntimeMethod", &InternalFunction::info, 0, 0 };
-RuntimeMethod::RuntimeMethod(ExecState* exec, const Identifier& ident, Bindings::MethodList& m)
+RuntimeMethod::RuntimeMethod(ExecState* exec, JSGlobalObject* globalObject, const Identifier& ident, Bindings::MethodList& m)
// FIXME: deprecatedGetDOMStructure uses the prototype off of the wrong global object
// exec-globalData() is also likely wrong.
// Callers will need to pass in the right global object corresponding to this native object "m".
- : InternalFunction(&exec->globalData(), deprecatedGetDOMStructure<RuntimeMethod>(exec), ident)
+ : InternalFunction(&exec->globalData(), globalObject, deprecatedGetDOMStructure<RuntimeMethod>(exec), ident)
, _methodList(new MethodList(m))
{
}
diff --git a/WebCore/bridge/runtime_method.h b/WebCore/bridge/runtime_method.h
index 9c80ba1..96d12aa 100644
--- a/WebCore/bridge/runtime_method.h
+++ b/WebCore/bridge/runtime_method.h
@@ -35,7 +35,7 @@ namespace JSC {
class RuntimeMethod : public InternalFunction {
public:
- RuntimeMethod(ExecState*, const Identifier& name, Bindings::MethodList&);
+ RuntimeMethod(ExecState*, JSGlobalObject*, const Identifier& name, Bindings::MethodList&);
Bindings::MethodList* methods() const { return _methodList.get(); }
static const ClassInfo s_info;
diff --git a/WebCore/bridge/runtime_object.cpp b/WebCore/bridge/runtime_object.cpp
index 83aae74..0863452 100644
--- a/WebCore/bridge/runtime_object.cpp
+++ b/WebCore/bridge/runtime_object.cpp
@@ -38,16 +38,16 @@ namespace Bindings {
const ClassInfo RuntimeObject::s_info = { "RuntimeObject", 0, 0, 0 };
-RuntimeObject::RuntimeObject(ExecState* exec, PassRefPtr<Instance> instance)
+RuntimeObject::RuntimeObject(ExecState* exec, JSGlobalObject* globalObject, PassRefPtr<Instance> instance)
// FIXME: deprecatedGetDOMStructure uses the prototype off of the wrong global object
// We need to pass in the right global object for "i".
- : JSObject(deprecatedGetDOMStructure<RuntimeObject>(exec))
+ : JSObjectWithGlobalObject(globalObject, deprecatedGetDOMStructure<RuntimeObject>(exec))
, m_instance(instance)
{
}
-RuntimeObject::RuntimeObject(ExecState*, NonNullPassRefPtr<Structure> structure, PassRefPtr<Instance> instance)
- : JSObject(structure)
+RuntimeObject::RuntimeObject(ExecState*, JSGlobalObject* globalObject, NonNullPassRefPtr<Structure> structure, PassRefPtr<Instance> instance)
+ : JSObjectWithGlobalObject(globalObject, structure)
, m_instance(instance)
{
}
diff --git a/WebCore/bridge/runtime_object.h b/WebCore/bridge/runtime_object.h
index b735e36..64c8049 100644
--- a/WebCore/bridge/runtime_object.h
+++ b/WebCore/bridge/runtime_object.h
@@ -28,13 +28,14 @@
#include "Bridge.h"
#include <runtime/JSGlobalObject.h>
+#include <runtime/JSObjectWithGlobalObject.h>
namespace JSC {
namespace Bindings {
-class RuntimeObject : public JSObject {
+class RuntimeObject : public JSObjectWithGlobalObject {
public:
- RuntimeObject(ExecState*, PassRefPtr<Instance>);
+ RuntimeObject(ExecState*, JSGlobalObject*, PassRefPtr<Instance>);
virtual ~RuntimeObject();
virtual bool getOwnPropertySlot(ExecState*, const Identifier& propertyName, PropertySlot&);
@@ -67,7 +68,7 @@ public:
protected:
static const unsigned StructureFlags = OverridesGetOwnPropertySlot | OverridesGetPropertyNames | JSObject::StructureFlags;
- RuntimeObject(ExecState*, NonNullPassRefPtr<Structure>, PassRefPtr<Instance>);
+ RuntimeObject(ExecState*, JSGlobalObject*, NonNullPassRefPtr<Structure>, PassRefPtr<Instance>);
private:
virtual const ClassInfo* classInfo() const { return &s_info; }