WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
UNCONFIRMED
119670
webkit_web_view_set_transparent does not work
https://bugs.webkit.org/show_bug.cgi?id=119670
Summary
webkit_web_view_set_transparent does not work
BS_Chauhan
Reported
2013-08-11 23:04:19 PDT
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.
Attachments
Add attachment
proposed patch, testcase, etc.
Martin Robinson
Comment 1
2013-09-09 11:13:37 PDT
(In reply to
comment #0
)
> Is there is a way I can set the webview as transparent??
Ensure that the page you are showing does not have an opaque background.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug