X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2Fsvgtiny_internal.h;h=5ece69d42c1ab66cfa52a46321e31d3f9b67fe8e;hb=099cae0989f0ef3db52de99fb0d1e562465f5a02;hp=a7d0499439b57cc234b851aa2606a415703d58b9;hpb=eb882b3212a23ece39c714311c5bc3d58cf07074;p=libsvgtiny.git diff --git a/src/svgtiny_internal.h b/src/svgtiny_internal.h index a7d0499..5ece69d 100644 --- a/src/svgtiny_internal.h +++ b/src/svgtiny_internal.h @@ -54,6 +54,11 @@ struct svgtiny_parse_state { * 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;