cssparser: Make gsk_renderer_consume_url() return a string
authorBenjamin Otte <otte@redhat.com>
Sun, 12 May 2019 13:18:46 +0000 (15:18 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 12 May 2019 15:28:19 +0000 (17:28 +0200)
commit0886ade182f1a958024202d5c20248d57fcdb053
tree16b93e632cba175b8d400d0483ad6383bbaef208
parent0103704171c762c45c060afb4ab00cc2137f7323
cssparser: Make gsk_renderer_consume_url() return a string

We don't want to return a GFile because GFile can't handle can't deal
with data: urls.
That makes the code a bit more complicated that doesn't deal with those
URLs, but it makes the other code actually work.

GtkCssImageUrl also now decodes data urls immediately instead of only at
the first load. So don't use data urls if you care about performance.
gsk/gskrendernodeparser.c
gtk/css/gtkcssparser.c
gtk/css/gtkcssparserprivate.h
gtk/gtkcssimagerecolor.c
gtk/gtkcssimageurl.c
gtk/gtkcssprovider.c