[Webkit-unassigned] [Bug 119670] New: webkit_web_view_set_transparent does not work

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Aug 11 23:04:43 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=119670

           Summary: webkit_web_view_set_transparent does not work
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P1
         Component: WebKit Gtk
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: singhbhupal88 at gmail.com


Hi,

I have ported webkitgtk 1.10.2 on embedded system with backend has directFB using Buildroot, I wanted to make the white background which is the default background window color on webkitgtk to make it as transparent, such that only the widgets on the transparent window are visible. The problem here is I am able to set the Gtk window as transparent using cairo with the following code spinet below.

static gboolean expose(GtkWidget *widget, GdkEventExpose *event, gpointer userdata)
{

   cairo_t *cr = gdk_cairo_create(widget->window);

    /*if (supports_alpha)*/
        cairo_set_source_rgba (cr, 1.0, 1.0, 1.0, 0.2); /* transparent */
    /*else
        cairo_set_source_rgb (cr, 1.0, 1.0, 1.0);  opaque white */

    /* draw the background */
    cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
    cairo_paint (cr);

    cairo_destroy(cr);

    return FALSE;
}    

with the above code I am only able to set the transparency to the Gtk window, I failed to set the transparency to the webview which is created upon  the gtk window, I wanted the webview also to be transparent. To achieve this I used webkit_web_view_set_transparent, but this does not work for me I tried to check using webkit_web_view_get_transparent I get TRUE as the return value, But still no effect on the webview it remains with no change that is white background.

Is there is a way I can set the webview as transparent?? 


Thanks.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list