X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2Fsvgtiny.c;h=db0d59b02cd72209a51f409d7f62aef338bb64e3;hb=476045efcd3d938d5ac506eafef3b1551fa8edac;hp=8cb1eff2f283adf74b00eb42dc6b1bed4078bcd0;hpb=35b69b465e986a90df6396c39fac35fec3298418;p=libsvgtiny.git diff --git a/src/svgtiny.c b/src/svgtiny.c index 8cb1eff..db0d59b 100644 --- a/src/svgtiny.c +++ b/src/svgtiny.c @@ -40,6 +40,10 @@ #define degToRad(angleInDegrees) ((angleInDegrees) * M_PI / 180.0) #define radToDeg(angleInRadians) ((angleInRadians) * 180.0 / M_PI) +static svgtiny_code svgtiny_parse_style_element(dom_element *style, + struct svgtiny_parse_state state); +static css_stylesheet *svgtiny_parse_style_inline(const uint8_t *data, + size_t len); static svgtiny_code svgtiny_preparse_styles(dom_element *svg, struct svgtiny_parse_state state); static svgtiny_code svgtiny_parse_svg(dom_element *svg, @@ -761,6 +765,108 @@ cleanup: return code; } + +/** + * Parse a single