mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
wpesrc: Implement webview background configuration support
This commit is contained in:
parent
deb2f11fe2
commit
451074a7e0
1 changed files with 6 additions and 4 deletions
|
@ -371,11 +371,13 @@ void WPEThreadedView::loadUri(const gchar* uri)
|
||||||
|
|
||||||
void WPEThreadedView::setDrawBackground(gboolean drawsBackground)
|
void WPEThreadedView::setDrawBackground(gboolean drawsBackground)
|
||||||
{
|
{
|
||||||
#if 1
|
#if WEBKIT_CHECK_VERSION(2, 23, 0)
|
||||||
// See https://bugs.webkit.org/show_bug.cgi?id=192305
|
GST_DEBUG("%s background rendering", drawsBackground ? "Enabling" : "Disabling");
|
||||||
GST_FIXME("set_draws_background API not upstream yet");
|
WebKitColor color;
|
||||||
|
webkit_color_parse(&color, drawsBackground ? "white" : "transparent");
|
||||||
|
webkit_web_view_set_background_color(webkit.view, &color);
|
||||||
#else
|
#else
|
||||||
webkit_web_view_set_draws_background(webkit.view, drawsBackground);
|
GST_FIXME("webkit_web_view_set_background_color is not implemented in WPE %u.%u. Please upgrade to 2.24", webkit_get_major_version(), webkit_get_minor_version());
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue