]> gitweb.michael.orlitzky.com - libsvgtiny.git/commit
src/svgtiny_css.c: new function svgtiny_create_stylesheet()
authorMichael Orlitzky <michael@orlitzky.com>
Wed, 11 Oct 2023 12:27:22 +0000 (08:27 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 20 Nov 2023 01:37:04 +0000 (20:37 -0500)
commit7631bb4f5133b45639b71280864c4099c50400db
tree36a597aa47dd77e3a33ac69d8a231231889480fd
parent437bbf937bf78d100180407e1e92dd881f170f63
src/svgtiny_css.c: new function svgtiny_create_stylesheet()

We add a function to handle the creation of a new stylesheet with the
default set of parameters. This is in preparation for parsing the
inline styles, which a priori would involve copy/pasting a lot of

  params.foo = bar;

lines from svgtiny_parse_style_element(). The goal is to factor the
common bits out of both the <style> and style= implementations.
src/svgtiny_css.c