]> gitweb.michael.orlitzky.com - libsvgtiny.git/commitdiff
src/svgtiny.c: remove old misleading libcss comments
authorMichael Orlitzky <michael@orlitzky.com>
Sat, 7 Jun 2025 13:43:35 +0000 (09:43 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Sun, 8 Jun 2025 02:18:20 +0000 (22:18 -0400)
There were a few comments in this file suggesting some future libcss
integration. However, now that we are beginning that integration (much
later), it is probably best to start with a clean slate. So, we remove
those comments.

src/svgtiny.c

index ab49f8f4124669d54728743d9e44a4824ebb1408..44ca0fedad0dc1b0828dff36f29d13709ae4b33c 100644 (file)
@@ -256,13 +256,7 @@ svgtiny_parse_font_attributes(dom_element *node,
 
        for (attr = node->properties; attr; attr = attr->next) {
                if (strcmp((const char *) attr->name, "font-size") == 0) {
-                       /*if (css_parse_length(
-                         (const char *) attr->children->content,
-                         &state->style.font_size.value.length,
-                         true, true)) {
-                         state->style.font_size.size =
-                         CSS_FONT_SIZE_LENGTH;
-                         }*/
+                       /* TODO */
                }
         }
 #endif
@@ -844,9 +838,6 @@ svgtiny_parse_text(dom_element *text, struct svgtiny_parse_state state)
 /*     state.ctm.e = px - state.origin_x; */
 /*     state.ctm.f = py - state.origin_y; */
 
-       /*struct css_style style = state.style;
-         style.font_size.value.length.value *= state.ctm.a;*/
-
         exc = dom_node_get_first_child(text, &child);
        if (exc != DOM_NO_ERR) {
                return svgtiny_LIBDOM_ERROR;
@@ -1118,8 +1109,6 @@ initialise_parse_state(struct svgtiny_parse_state *state,
        state->ctm.d = 1; /*(float) viewport_height / (float) height;*/
        state->ctm.e = 0; /*x;*/
        state->ctm.f = 0; /*y;*/
-       /*state->style = css_base_style;
-         state->style.font_size.value.length.value = option_font_size * 0.1;*/
        state->fill = 0x000000;
        state->stroke = svgtiny_TRANSPARENT;
        state->stroke_width = 1;