]> 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>
Sun, 8 Jun 2025 02:18:20 +0000 (22:18 -0400)
commita01e70298e4aa9239b2494b1c2129e0fc952295b
tree4b880e53ed69e0e6322b3f0d31d85417ac3c0a18
parent1cdbe9b44d69f5b0bf7a7ec03001f34ee419eff1
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