Fix the Qt build.
[WebKit-https.git] / WebKit / qt / Api / qwebframe.cpp
index 240e727..5055246 100644 (file)
@@ -55,6 +55,7 @@
 #include "runtime.h"
 #include "runtime_root.h"
 #include "JSDOMWindow.h"
+#include "qt_instance.h"
 #include "kjs_proxy.h"
 #include "kjs_binding.h"
 #include "ExecState.h"
@@ -175,8 +176,7 @@ void QWebFrame::addToJSWindowObject(const QString &name, QObject *object)
       }
 
       KJS::JSObject *runtimeObject =
-        KJS::Bindings::Instance::createRuntimeObject(KJS::Bindings::Instance::QtLanguage,
-                                                     object, root);
+        KJS::Bindings::Instance::createRuntimeObject(KJS::Bindings::QtInstance::create(object, root));
 
       window->put(window->globalExec(), KJS::Identifier((const UChar *) name.constData(), name.length()), runtimeObject);
 }