summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/webkit
diff options
context:
space:
mode:
authorJedrzej Nowacki <jedrzej.nowacki@nokia.com>2009-08-10 16:02:22 (GMT)
committerJedrzej Nowacki <jedrzej.nowacki@nokia.com>2009-08-10 16:02:22 (GMT)
commit595d0d022b1067689a5bf921392885f849debd3a (patch)
tree81a00492b03c53796b8bcf0f838f0172f15e5278 /src/3rdparty/webkit
parent336f0bf740842ab8defdbf482a7f043de95857e4 (diff)
downloadQt-595d0d022b1067689a5bf921392885f849debd3a.zip
Qt-595d0d022b1067689a5bf921392885f849debd3a.tar.gz
Qt-595d0d022b1067689a5bf921392885f849debd3a.tar.bz2
JSGlobalObject debugger's setter
Setting Debugger for JSGlobalObject automatically set it to ScriptPool object. Should be part of f5af011ede569bb88ec9b27ff7a65fe99f7d17fd commit
Diffstat (limited to 'src/3rdparty/webkit')
-rw-r--r--src/3rdparty/webkit/JavaScriptCore/runtime/JSGlobalObject.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/3rdparty/webkit/JavaScriptCore/runtime/JSGlobalObject.h b/src/3rdparty/webkit/JavaScriptCore/runtime/JSGlobalObject.h
index 7ab759d..dc11fee 100644
--- a/src/3rdparty/webkit/JavaScriptCore/runtime/JSGlobalObject.h
+++ b/src/3rdparty/webkit/JavaScriptCore/runtime/JSGlobalObject.h
@@ -30,6 +30,10 @@
#include <wtf/HashSet.h>
#include <wtf/OwnPtr.h>
+#ifdef QT_BUILD_SCRIPT_LIB
+#include "SourcePoolQt.h"
+#endif
+
namespace JSC {
class ArrayPrototype;
@@ -226,7 +230,13 @@ namespace JSC {
unsigned profileGroup() const { return d()->profileGroup; }
Debugger* debugger() const { return d()->debugger; }
- void setDebugger(Debugger* debugger) { d()->debugger = debugger; }
+ void setDebugger(Debugger* debugger)
+ {
+#ifdef QT_BUILD_SCRIPT_LIB
+ globalData()->scriptpool->setDebugger(debugger);
+#endif
+ d()->debugger = debugger;
+ }
virtual bool supportsProfiling() const { return false; }