Do not go through gdk-pixbuf when an image element references an SVG file
The spec for the <image>
element explains that if the element has href="something.svg"
, then it must be rasterized, but taking into account the viewport defined by the image element.
Right now we have a circular dependency on gdk-pixbuf, since all images loaded from the <image>
element go through it, including SVG images.
But now that everything is in Rust, librsvg can recurse and call its own API. Do that instead of going through gdk-pixbuf for SVG images.
Tangentially, see #513 (closed).