diff options
Diffstat (limited to 'WebKitTools/DumpRenderTree/chromium/TestShellGtk.cpp')
-rw-r--r-- | WebKitTools/DumpRenderTree/chromium/TestShellGtk.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/WebKitTools/DumpRenderTree/chromium/TestShellGtk.cpp b/WebKitTools/DumpRenderTree/chromium/TestShellGtk.cpp index 4f3eefd..a9d374c 100644 --- a/WebKitTools/DumpRenderTree/chromium/TestShellGtk.cpp +++ b/WebKitTools/DumpRenderTree/chromium/TestShellGtk.cpp @@ -33,6 +33,7 @@ #include "webkit/support/webkit_support.h" #include <fontconfig/fontconfig.h> +#include <gtk/gtk.h> #include <signal.h> static void AlarmHandler(int signatl) @@ -185,7 +186,11 @@ void TestShell::waitTestFinished() signal(SIGALRM, SIG_DFL); } -void platformInit() +void platformInit(int* argc, char*** argv) { + // FIXME: It's better call gtk_init() only when we run plugin tests. + // See http://groups.google.com/a/chromium.org/group/chromium-dev/browse_thread/thread/633ea167cde196ca# + gtk_init(argc, argv); + setupFontconfig(); } |