diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-01-18 00:28:20 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-01-18 00:28:20 +0000 |
commit | bb3eab31e848a6d414ea66e95fbad67858fb0439 (patch) | |
tree | cc1e00e91d433c693fcb6eb821f199df905649e1 /src | |
parent | 9e0807bdf9b958c56cf219aacc106221060a8b42 (diff) | |
download | libcss-bb3eab31e848a6d414ea66e95fbad67858fb0439.tar.gz libcss-bb3eab31e848a6d414ea66e95fbad67858fb0439.tar.bz2 |
Fix font-weight, line-height, and orphans.
svn path=/trunk/libcss/; revision=6123
Diffstat (limited to 'src')
-rw-r--r-- | src/parse/properties.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/parse/properties.c b/src/parse/properties.c index 1aac8e4..e0f07d9 100644 --- a/src/parse/properties.c +++ b/src/parse/properties.c @@ -3119,7 +3119,7 @@ css_error parse_font_weight(css_language *c, } else if (token->type == CSS_TOKEN_NUMBER) { size_t consumed = 0; css_string tmp = { token->ilower->len, - (uint8_t *) token->ilower }; + (uint8_t *) token->ilower->data }; fixed num = number_from_css_string(&tmp, true, &consumed); /* Invalid if there are trailing characters */ if (consumed != token->ilower->len) @@ -3385,11 +3385,12 @@ css_error parse_line_height(css_language *c, } else if (token->type == CSS_TOKEN_NUMBER) { size_t consumed = 0; css_string tmp = { token->ilower->len, - (uint8_t *) token->ilower }; + (uint8_t *) token->ilower->data }; length = number_from_css_string(&tmp, false, &consumed); if (consumed != token->ilower->len) return CSS_INVALID; + parserutils_vector_iterate(vector, ctx); value = LINE_HEIGHT_NUMBER; } else { error = parse_unit_specifier(c, vector, ctx, UNIT_PX, @@ -3880,7 +3881,7 @@ css_error parse_orphans(css_language *c, } else if (token->type == CSS_TOKEN_NUMBER) { size_t consumed = 0; css_string tmp = { token->ilower->len, - (uint8_t *) token->ilower }; + (uint8_t *) token->ilower->data }; num = number_from_css_string(&tmp, true, &consumed); /* Invalid if there are trailing characters */ if (consumed != token->ilower->len) |