implement layoutTestController.dumpEditingCallbacks() correctly.
authorlars <lars@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Oct 2007 12:32:13 +0000 (12:32 +0000)
committerlars <lars@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Oct 2007 12:32:13 +0000 (12:32 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26964 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKitTools/ChangeLog
WebKitTools/DumpRenderTree/qt/DumpRenderTree.cpp
WebKitTools/DumpRenderTree/qt/jsobjects.cpp

index ca72759de3b68048d6fe642908a606f86c584a31..20e674c086d93e6fbf76ddd04b98fa5f232a1de0 100644 (file)
@@ -1,3 +1,15 @@
+2007-10-24  Lars Knoll  <lars@trolltech.com>
+
+        Reviewed by Simon.
+
+        implement layoutTestController.dumpEditingCallbacks() correctly.
+
+        * DumpRenderTree/qt/DumpRenderTree.cpp:
+        (WebCore::DumpRenderTree::DumpRenderTree):
+        * DumpRenderTree/qt/jsobjects.cpp:
+        (LayoutTestController::reset):
+        (LayoutTestController::dumpEditingCallbacks):
+
 2007-10-24  Lars Knoll  <lars@trolltech.com>
 
         Reviewed by Simon.
index 3c972f6dc83ce3135eb81dca78e40f0237ec7562..6e06a6a2078258e246bba70fca01a1b446d39b4d 100644 (file)
@@ -123,7 +123,6 @@ DumpRenderTree::DumpRenderTree()
     : m_stdin(0)
     , m_notifier(0)
 {
-    qt_dump_editing_callbacks(true);
     m_controller = new LayoutTestController(this);
     connect(m_controller, SIGNAL(done()), this, SLOT(dump()), Qt::QueuedConnection);
 
index 99db3ea3d13872cdcb0b394be5b1f344930ca9a6..07d619abbf9ce772ff24d3e594c4455353c989f5 100644 (file)
@@ -32,6 +32,7 @@
 #include <qapplication.h>
 
 #include "DumpRenderTree.h"
+extern void qt_dump_editing_callbacks(bool b);
 
 class HackWebFrame : public QWebFrame
 {
@@ -73,6 +74,7 @@ void LayoutTestController::reset()
         m_timeoutTimer = 0;
     }
     m_topLoadingFrame = 0;
+    qt_dump_editing_callbacks(false);
 }
 
 void LayoutTestController::maybeDump(bool ok)
@@ -120,7 +122,8 @@ void LayoutTestController::clearBackForwardList()
 
 void LayoutTestController::dumpEditingCallbacks()
 {
-    //qDebug() << ">>>dumpEditingCallbacks";
+    qDebug() << ">>>dumpEditingCallbacks";
+    qt_dump_editing_callbacks(true);
 }
 
 void LayoutTestController::queueReload()