2007-12-05 Alp Toker <alp@atoker.com>
authoralp@webkit.org <alp@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Dec 2007 16:42:14 +0000 (16:42 +0000)
committeralp@webkit.org <alp@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Dec 2007 16:42:14 +0000 (16:42 +0000)
        Reviewed by Mark Rowe.

        Initialize GTK+ and WebKit so the tests can run.

        Reorganize the headers a little.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28440 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKitTools/ChangeLog
WebKitTools/DumpRenderTree/gtk/DumpRenderTree.cpp

index 85512140c3b2f9b3f9b75d1b51d93eb890a027b1..87d5c563bd4304ddf7ad3191fc60e2a00de66cff 100644 (file)
@@ -1,3 +1,14 @@
+2007-12-05  Alp Toker  <alp@atoker.com>
+
+        Reviewed by Mark Rowe.
+
+        Initialize GTK+ and WebKit so the tests can run.
+
+        Reorganize the headers a little.
+
+        * DumpRenderTree/gtk/DumpRenderTree.cpp:
+        (main):
+
 2007-12-04  Anders Carlsson  <andersca@apple.com>
 
         Remove IWebScriptScope include.
index 4f201275c923f071a8e32750fb7a59e31ddda123..24f81b9e1f30c1600e25bf9c6b21bd441c2c4734 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#include "webkitwebframe.h"
-#include "webkitwebview.h"
+#include "LayoutTestController.h"
+#include "WorkQueue.h"
+#include "WorkQueueItem.h"
 
 #include <gtk/gtk.h>
-
-#include <string.h>
+#include <webkit.h>
 
 #include <JavaScriptCore/JSBase.h>
 #include <JavaScriptCore/JSContextRef.h>
-#include <JavaScriptCore/JSStringRef.h>
 #include <JavaScriptCore/JSObjectRef.h>
+#include <JavaScriptCore/JSStringRef.h>
 #include <JavaScriptCore/JSValueRef.h>
 
-#include "LayoutTestController.h"
-#include "WorkQueue.h"
-#include "WorkQueueItem.h"
-
 #include <getopt.h>
 #include <stdlib.h>
+#include <string.h>
 
 extern "C" {
 // This API is not yet public.
@@ -239,6 +236,9 @@ int main(int argc, char* argv[])
                 break;
         }
 
+    gtk_init(&argc, &argv);
+    webkit_init();
+
     view = WEBKIT_WEB_VIEW(webkit_web_view_new());
     mainFrame = webkit_web_view_get_main_frame(view);