Author: jmb
Date: Fri Jan 23 16:29:17 2009
New Revision: 6199

URL: http://source.netsurf-browser.org?rev=6199&view=rev
Log:
Fix counter-reset parsing

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=6199&r1=6198&r2=6199&view=diff
==============================================================================
--- trunk/libcss/src/parse/properties.c (original)
+++ trunk/libcss/src/parse/properties.c Fri Jan 23 16:29:17 2009
@@ -1810,7 +1810,7 @@
 
                while (token != NULL) {
                        const parserutils_hash_entry *name = token->idata;
-                       fixed increment = INTTOFIX(1);
+                       fixed increment = INTTOFIX(0);
 
                        consumeWhitespace(vector, &temp_ctx);
 
@@ -1849,6 +1849,8 @@
                        first = false;
 
                        token = parserutils_vector_iterate(vector, &temp_ctx);
+                       if (token != NULL && token->type != CSS_TOKEN_IDENT)
+                               return CSS_INVALID;
                }
 
                /* And for the terminator */
@@ -1886,7 +1888,7 @@
 
                while (token != NULL) {
                        const parserutils_hash_entry *name = token->idata;
-                       fixed increment = INTTOFIX(1);
+                       fixed increment = INTTOFIX(0);
 
                        consumeWhitespace(vector, ctx);
 
@@ -1929,6 +1931,8 @@
                        first = false;
 
                        token = parserutils_vector_iterate(vector, ctx);
+                       if (token != NULL && token->type != CSS_TOKEN_IDENT)
+                               return CSS_INVALID;
                }
 
                /* And for the terminator */


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

Reply via email to