~ubuntu-branches/ubuntu/lucid/webkit/lucid-updates

« back to all changes in this revision

Viewing changes to WebKitTools/DumpRenderTree/gtk/DumpRenderTree.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Gustavo Noronha Silva
  • Date: 2010-01-06 21:25:06 UTC
  • mfrom: (1.2.6 upstream) (4.3.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100106212506-gd0czn4zrwf1j19l
* New upstream release
- adds basic Content-Encoding support, thanks to soup
  (Closes: #529271)
- fixes over-advertising content types as supported by
  the media player (Closes: #559420)
* debian/control:
- updated libsoup build requirement (>= 2.28.2)
* debian/libwebkit-1.0-2.symbols:
- updated with new symbols
* debian/copyright:
- updated information since 1.1.17
* Imported patch from https://bugs.webkit.org/show_bug.cgi?id=30623
- I am shipping this patch because I believe it is correct, it is the
  way to go, it fixes a race, and it needs testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
 
127
127
void displayWebView()
128
128
{
129
 
 
 
129
    gtk_widget_queue_draw(GTK_WIDGET(webView));
130
130
}
131
131
 
132
132
static void appendString(gchar*& target, gchar* string)
333
333
                 "default-font-size", 16,
334
334
                 "default-monospace-font-size", 13,
335
335
                 "minimum-font-size", 1,
 
336
                 "enable-caret-browsing", FALSE,
 
337
                 "enable-page-cache", FALSE,
336
338
                 NULL);
337
339
 
338
340
    webkit_web_frame_clear_main_frame_name(mainFrame);
405
407
 
406
408
    // FIXME: call displayWebView here when we support --paint
407
409
 
408
 
    puts("#EOF"); // terminate the (possibly empty) pixels block
409
 
 
410
 
    fflush(stdout);
411
 
    fflush(stderr);
412
 
 
413
410
    done = true;
414
411
    gtk_main_quit();
415
412
}
433
430
    g_free(databaseDirectory);
434
431
}
435
432
 
 
433
static void sendPixelResultsEOF()
 
434
{
 
435
    puts("#EOF");
 
436
 
 
437
    fflush(stdout);
 
438
    fflush(stderr);
 
439
}
 
440
 
436
441
static void runTest(const string& testPathOrURL)
437
442
{
438
443
    ASSERT(!testPathOrURL.empty());
513
518
 
514
519
    gLayoutTestController->deref();
515
520
    gLayoutTestController = 0;
 
521
 
 
522
    // terminate the (possibly empty) pixels block after all the state reset
 
523
    sendPixelResultsEOF();
516
524
}
517
525
 
518
526
void webViewLoadStarted(WebKitWebView* view, WebKitWebFrame* frame, void*)
774
782
                     "signal::close-window", webInspectorCloseWindow, 0,
775
783
                     NULL);
776
784
 
 
785
    if (webView) {
 
786
        WebKitWebSettings* settings = webkit_web_view_get_settings(webView);
 
787
        webkit_web_view_set_settings(view, settings);
 
788
    }
 
789
 
777
790
    return view;
778
791
}
779
792
 
827
840
    gtk_container_add(GTK_CONTAINER(container), GTK_WIDGET(webView));
828
841
    gtk_widget_realize(GTK_WIDGET(webView));
829
842
    gtk_widget_show_all(container);
 
843
    gtk_widget_grab_focus(GTK_WIDGET(webView));
830
844
    mainFrame = webkit_web_view_get_main_frame(webView);
831
845
 
832
846
    setDefaultsToConsistentStateValuesForTesting();