2008-01-16 Alp Toker <alp@atoker.com>
[WebKit-https.git] / WebKitTools / DumpRenderTree / gtk / WorkQueueItemGtk.cpp
index f47e021f8918ed6abe3a75c4b4dc94489b2654a0..724bcda63bf273175fd931bc300c6fffe2607766 100644 (file)
@@ -71,13 +71,5 @@ void ScriptItem::invoke() const
 void BackForwardItem::invoke() const
 {
     WebKitWebView* webView = webkit_web_frame_get_web_view(mainFrame);
-    if (m_howFar == 1)
-        webkit_web_view_go_forward(webView);
-    else if (m_howFar == -1)
-        webkit_web_view_go_backward(webView);
-    else {
-        g_warning("Can't go backward/forward\n");
-        //notImplemented();
-        // TODO: API doesn't yet support arbitrary back/forward
-    }
+    webkit_web_view_go_back_or_forward(webView, m_howFar);
 }