]> gitweb.michael.orlitzky.com - libsvgtiny.git/commit
src/svgtiny_internal.h: add CSS context to parser state
authorMichael Orlitzky <michael@orlitzky.com>
Wed, 4 Oct 2023 02:51:38 +0000 (22:51 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Wed, 4 Oct 2023 03:17:25 +0000 (23:17 -0400)
commit3e5238db0f40672c24530f2443f834c3f7b7ca1a
tree387af9d71a2644ed9cb99e1427f17f63e4b25bea
parente528a85a0f2dc8db3fca85527e05cdbcfe7650f0
src/svgtiny_internal.h: add CSS context to parser state

Add a css_select_ctx pointer to the svgtiny_parse_state that is
threaded through each phase of SVG parsing. This will allow us to
populate the context with any <style> sheets we find; later, we can
consult those stylesheets while constructing our svgtiny_diagram (the
abstract representation into which we parse an SVG).
src/svgtiny_internal.h