Author: jmb
Date: Sat Jan 17 18:28:20 2009
New Revision: 6123

URL: http://source.netsurf-browser.org?rev=6123&view=rev
Log:
Fix font-weight, line-height, and orphans.

Modified:
    trunk/libcss/src/parse/properties.c

Modified: trunk/libcss/src/parse/properties.c
URL: 
http://source.netsurf-browser.org/trunk/libcss/src/parse/properties.c?rev=6123&r1=6122&r2=6123&view=diff
==============================================================================
--- trunk/libcss/src/parse/properties.c (original)
+++ trunk/libcss/src/parse/properties.c Sat Jan 17 18:28:20 2009
@@ -3119,7 +3119,7 @@
        } 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 @@
        } 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 @@
        } 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)


_______________________________________________
netsurf-commits mailing list
[email protected]
http://vlists.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to