* precede it. */
css_select_ctx *select_ctx;
+ /* A libcss unit context. This is used to compute and compose
+ * styles, and is convenient to create once and pass along
+ * with the rest of the state. */
+ css_unit_ctx unit_ctx;
+
+ /* Keep track of the parent element's computed style so that
+ * we can compose its children's computed styles with it. */
+ css_computed_style *parent_style;
+
/* paint attributes */
svgtiny_colour fill;
svgtiny_colour stroke;
int stroke_width;
+ /* alpha */
+ float fill_opacity;
+ float stroke_opacity;
+
/* gradients */
struct svgtiny_parse_state_gradient fill_grad;
struct svgtiny_parse_state_gradient stroke_grad;
/* svgtiny_css.c */
css_error svgtiny_create_stylesheet(css_stylesheet **sheet,
bool inline_style);
+css_error svgtiny_select_style(struct svgtiny_parse_state *state,
+ dom_element *node,
+ const css_stylesheet *inline_sheet,
+ css_select_results **result);
/* svgtiny_gradient.c */
void svgtiny_find_gradient(const char *id,