Benjamin Otte
6055028c96
snapshot: Rename append APIs
...
Instead of having gtk_snapshot_append_foo_node(), just have
gtk_snapshot_append_foo(). Nobody needs to know that this internally
uses nodes.
2017-01-13 04:46:09 +01:00
Benjamin Otte
e5e5beafa5
cssimage: Fallback images have no aspect ratio
...
The aspect ratio for fallback image was incorrectly set to 1.
Reftest is included.
2017-01-13 03:38:36 +01:00
Benjamin Otte
671d43b873
cssimage: Implement snapshot() in the fallback image
2016-12-20 18:01:10 +01:00
Matthias Clasen
c2ab49e963
Fix whitespace
2016-09-06 06:38:50 -04:00
Matthias Clasen
c30ee622fe
css: Set meaningful fallback color
...
This code was passing out-of-range values into
gdk_cairo_set_source_rgb, which cannot really make
anything better.
2016-09-06 06:38:50 -04:00
Matthias Clasen
3fd9bda06f
css: Fix printing of images
...
When there is only a call in a fallback image, we were errnoneously
printing out a comma before it.
2016-04-26 00:03:09 -04:00
Matthias Clasen
2e4b1e72f4
css: Support the image() notation
...
This lets us do fallback in case an image format is not
supported, and also lets us provide solid-color images.
We don't support image fragment notations.
See ttps://www.w3.org/TR/css3-images/#image-notation
https://bugzilla.gnome.org/show_bug.cgi?id=761318
2016-01-30 00:29:04 -05:00