summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/bridge/c/CRuntimeObject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/bridge/c/CRuntimeObject.cpp')
-rw-r--r--Source/WebCore/bridge/c/CRuntimeObject.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/WebCore/bridge/c/CRuntimeObject.cpp b/Source/WebCore/bridge/c/CRuntimeObject.cpp
index 4be4982..d322df4 100644
--- a/Source/WebCore/bridge/c/CRuntimeObject.cpp
+++ b/Source/WebCore/bridge/c/CRuntimeObject.cpp
@@ -24,11 +24,13 @@
*/
#include "config.h"
+#include "CRuntimeObject.h"
#if ENABLE(NETSCAPE_PLUGIN_API)
-#include "CRuntimeObject.h"
+#include "JSDOMBinding.h"
#include "c_instance.h"
+#include "runtime/ObjectPrototype.h"
namespace JSC {
namespace Bindings {
@@ -36,8 +38,11 @@ namespace Bindings {
const ClassInfo CRuntimeObject::s_info = { "CRuntimeObject", &RuntimeObject::s_info, 0, 0 };
CRuntimeObject::CRuntimeObject(ExecState* exec, JSGlobalObject* globalObject, PassRefPtr<CInstance> instance)
- : RuntimeObject(exec, globalObject, instance)
+ // FIXME: deprecatedGetDOMStructure uses the prototype off of the wrong global object
+ // We need to pass in the right global object for "i".
+ : RuntimeObject(exec, globalObject, WebCore::deprecatedGetDOMStructure<CRuntimeObject>(exec), instance)
{
+ ASSERT(inherits(&s_info));
}
CRuntimeObject::~CRuntimeObject()