Commit 3ce973c3 authored by mrobinson@webkit.org's avatar mrobinson@webkit.org

2011-01-26 Martin Robinson <mrobinson@igalia.com>

        Reviewed by Xan Lopez.

        [GTK] Pixel dumps do not include scrollbars in output images
        https://bugs.webkit.org/show_bug.cgi?id=53216

        Update expected results which should show scrollbars.

        * platform/gtk/css2.1/t0803-c5502-mrgn-r-02-c-expected.checksum:
        * platform/gtk/css2.1/t0803-c5502-mrgn-r-02-c-expected.png:
        * platform/gtk/css2.1/t0803-c5505-mrgn-02-c-expected.checksum:
        * platform/gtk/css2.1/t0803-c5505-mrgn-02-c-expected.png:
        * platform/gtk/css2.1/t080301-c411-vt-mrgn-00-b-expected.checksum:
        * platform/gtk/css2.1/t080301-c411-vt-mrgn-00-b-expected.png:
        * platform/gtk/css2.1/t0905-c5525-fltclr-00-c-ag-expected.checksum:
        * platform/gtk/css2.1/t0905-c5525-fltclr-00-c-ag-expected.png:
        * platform/gtk/css2.1/t0905-c5525-fltmrgn-00-c-ag-expected.checksum:
        * platform/gtk/css2.1/t0905-c5525-fltmrgn-00-c-ag-expected.png:
        * platform/gtk/css2.1/t0905-c5525-fltwidth-00-c-g-expected.checksum:
        * platform/gtk/css2.1/t0905-c5525-fltwidth-00-c-g-expected.png:
        * platform/gtk/css2.1/t0905-c5526-fltclr-00-c-ag-expected.checksum:
        * platform/gtk/css2.1/t0905-c5526-fltclr-00-c-ag-expected.png:
        * platform/gtk/css2.1/t1002-c5523-width-02-b-g-expected.checksum:
        * platform/gtk/css2.1/t1002-c5523-width-02-b-g-expected.png:
        * platform/gtk/css2.1/t1202-counters-08-b-expected.checksum:
        * platform/gtk/css2.1/t1202-counters-08-b-expected.png:
        * platform/gtk/css2.1/t1202-counters-09-b-expected.checksum:
        * platform/gtk/css2.1/t1202-counters-09-b-expected.png:
        * platform/gtk/css2.1/t140201-c535-bg-fixd-00-b-g-expected.checksum:
        * platform/gtk/css2.1/t140201-c535-bg-fixd-00-b-g-expected.png:
        * platform/gtk/css2.1/t140201-c537-bgfxps-00-c-ag-expected.checksum:
        * platform/gtk/css2.1/t140201-c537-bgfxps-00-c-ag-expected.png:
        * platform/gtk/css2.1/t1508-c527-font-07-b-expected.checksum:
        * platform/gtk/css2.1/t1508-c527-font-07-b-expected.png:
2011-01-26  Martin Robinson  <mrobinson@igalia.com>

        Reviewed by Xan Lopez.

        [GTK] Pixel dumps do not include scrollbars in output images
        https://bugs.webkit.org/show_bug.cgi?id=53216

        Show scrollbars in pixel dumps. This will fix pixel dumps for tests
        that have scrollbars.

        * DumpRenderTree/gtk/PixelDumpSupportGtk.cpp:
        (createBitmapContextFromWebView): Take the snapshot of the containing GtkScrolledWindow
        instead of the web view itself.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 132c61da
2011-01-26 Martin Robinson <mrobinson@igalia.com>
Reviewed by Xan Lopez.
[GTK] Pixel dumps do not include scrollbars in output images
https://bugs.webkit.org/show_bug.cgi?id=53216
Update expected results which should show scrollbars.
* platform/gtk/css2.1/t0803-c5502-mrgn-r-02-c-expected.checksum:
* platform/gtk/css2.1/t0803-c5502-mrgn-r-02-c-expected.png:
* platform/gtk/css2.1/t0803-c5505-mrgn-02-c-expected.checksum:
* platform/gtk/css2.1/t0803-c5505-mrgn-02-c-expected.png:
* platform/gtk/css2.1/t080301-c411-vt-mrgn-00-b-expected.checksum:
* platform/gtk/css2.1/t080301-c411-vt-mrgn-00-b-expected.png:
* platform/gtk/css2.1/t0905-c5525-fltclr-00-c-ag-expected.checksum:
* platform/gtk/css2.1/t0905-c5525-fltclr-00-c-ag-expected.png:
* platform/gtk/css2.1/t0905-c5525-fltmrgn-00-c-ag-expected.checksum:
* platform/gtk/css2.1/t0905-c5525-fltmrgn-00-c-ag-expected.png:
* platform/gtk/css2.1/t0905-c5525-fltwidth-00-c-g-expected.checksum:
* platform/gtk/css2.1/t0905-c5525-fltwidth-00-c-g-expected.png:
* platform/gtk/css2.1/t0905-c5526-fltclr-00-c-ag-expected.checksum:
* platform/gtk/css2.1/t0905-c5526-fltclr-00-c-ag-expected.png:
* platform/gtk/css2.1/t1002-c5523-width-02-b-g-expected.checksum:
* platform/gtk/css2.1/t1002-c5523-width-02-b-g-expected.png:
* platform/gtk/css2.1/t1202-counters-08-b-expected.checksum:
* platform/gtk/css2.1/t1202-counters-08-b-expected.png:
* platform/gtk/css2.1/t1202-counters-09-b-expected.checksum:
* platform/gtk/css2.1/t1202-counters-09-b-expected.png:
* platform/gtk/css2.1/t140201-c535-bg-fixd-00-b-g-expected.checksum:
* platform/gtk/css2.1/t140201-c535-bg-fixd-00-b-g-expected.png:
* platform/gtk/css2.1/t140201-c537-bgfxps-00-c-ag-expected.checksum:
* platform/gtk/css2.1/t140201-c537-bgfxps-00-c-ag-expected.png:
* platform/gtk/css2.1/t1508-c527-font-07-b-expected.checksum:
* platform/gtk/css2.1/t1508-c527-font-07-b-expected.png:
2011-01-26 Martin Robinson <mrobinson@igalia.com>
[GTK] Text input controls do not react properly to CSS styling
8eaae228cb5381e59b7220036368b2da
\ No newline at end of file
b1aa71ea04782765025aa2a6a0675632
\ No newline at end of file
e99926fb3866297acc7b29f5c7edac92
\ No newline at end of file
73678a652ab623564087b382bb954d7c
\ No newline at end of file
4d69a18c5369414e57cb3b4f177ee6ed
\ No newline at end of file
b3045d09d01dc859eba08637799882ef
\ No newline at end of file
9a1d5e8381a517abf467902d7bb5674f
\ No newline at end of file
5c4e354e7fa24d82c686d42cc02e1607
\ No newline at end of file
a69161dc7c5137d9504c552a366b0dc3
\ No newline at end of file
f6cc7fcda395e88bd2fdf61f635b612a
\ No newline at end of file
426fd9b3a1e5924c92940eeb64236f9b
\ No newline at end of file
815a0fc75b489b6dae3aca27a17ce6b0
\ No newline at end of file
9a1d5e8381a517abf467902d7bb5674f
\ No newline at end of file
5c4e354e7fa24d82c686d42cc02e1607
\ No newline at end of file
ebeed88d62724fef3e3d2f5bc94c12fc
\ No newline at end of file
3d7ca95fbb0554cb373e5922f65731e1
\ No newline at end of file
99d973bef774ab5db90b8f79dbb40669
\ No newline at end of file
d94eacb8f05e5c37de50e11702bdb8bf
\ No newline at end of file
7e74635b6aaa225d9775da388a280826
\ No newline at end of file
39819aa633d215691e0724f824540018
\ No newline at end of file
0437b4e721c382a1ee4f6fc2f045d17d
\ No newline at end of file
abff0719a55abf1b6f82d51f3b41df3a
\ No newline at end of file
67e0400371612bcff494d4a84b0ebe5d
\ No newline at end of file
66729075eddffb14860a4af6fa1f3a84
\ No newline at end of file
7dc2412f7632b0d769e461bea805557c
\ No newline at end of file
6014c0ceda6097265b3b711f41a1ed12
\ No newline at end of file
2011-01-26 Martin Robinson <mrobinson@igalia.com>
Reviewed by Xan Lopez.
[GTK] Pixel dumps do not include scrollbars in output images
https://bugs.webkit.org/show_bug.cgi?id=53216
Show scrollbars in pixel dumps. This will fix pixel dumps for tests
that have scrollbars.
* DumpRenderTree/gtk/PixelDumpSupportGtk.cpp:
(createBitmapContextFromWebView): Take the snapshot of the containing GtkScrolledWindow
instead of the web view itself.
2011-01-26 Dirk Pranke <dpranke@chromium.org>
Reviewed by Mihai Parparita.
......@@ -37,13 +37,14 @@
PassRefPtr<BitmapContext> createBitmapContextFromWebView(bool, bool, bool, bool)
{
WebKitWebView* view = webkit_web_frame_get_web_view(mainFrame);
GtkWidget* viewContainer = gtk_widget_get_parent(GTK_WIDGET(view));
gint width, height;
#ifdef GTK_API_VERSION_2
GdkPixmap* pixmap = gtk_widget_get_snapshot(GTK_WIDGET(view), 0);
GdkPixmap* pixmap = gtk_widget_get_snapshot(viewContainer, 0);
gdk_pixmap_get_size(pixmap, &width, &height);
#else
width = gtk_widget_get_allocated_width(GTK_WIDGET(view));
height = gtk_widget_get_allocated_height(GTK_WIDGET(view));
width = gtk_widget_get_allocated_width(viewContainer);
height = gtk_widget_get_allocated_height(viewContainer);
#endif
cairo_surface_t* imageSurface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, width, height);
......@@ -53,7 +54,7 @@ PassRefPtr<BitmapContext> createBitmapContextFromWebView(bool, bool, bool, bool)
cairo_paint(context);
g_object_unref(pixmap);
#else
gtk_widget_draw(GTK_WIDGET(view), context);
gtk_widget_draw(viewContainer, context);
#endif
return BitmapContext::createByAdoptingBitmapAndContext(0, context);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment