From 8ef8b2eede01ecec243071342e751dc1147f750b Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Mon, 2 Feb 2009 07:40:23 +0100 Subject: remove unused order_count parameter It seems that in dillo-0.8.0-css-3 it was used to make sure that later definitions of the same CSS property have more weight than previous ones. If for example a first stylesheet sets background-color to black, and a second stylesheet sets it to green, green should win. But as we currently parese everything in order (throughing away all parsed CSS data when a new CSS stylesheet has arrived), we don't need to remember the original ordering of stylesheets. --- src/cssparser.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/cssparser.cc') diff --git a/src/cssparser.cc b/src/cssparser.cc index 9f0a457f..09b0c530 100644 --- a/src/cssparser.cc +++ b/src/cssparser.cc @@ -348,7 +348,6 @@ typedef enum { typedef struct { CssContext *context; - int order_count; CssOrigin origin; const char *buf; @@ -1166,7 +1165,7 @@ static void Css_parse_ruleset(CssParser * parser) void a_Css_parse(CssContext * context, const char *buf, - int buflen, int order_count, CssOrigin origin) + int buflen, CssOrigin origin) { CssParser parser; @@ -1174,7 +1173,6 @@ void a_Css_parse(CssContext * context, parser.buf = buf; parser.buflen = buflen; parser.bufptr = 0; - parser.order_count = 0; parser.origin = origin; parser.within_block = false; parser.space_separated = false; @@ -1193,7 +1191,6 @@ CssPropertyList *a_Css_parse_declaration(const char *buf, int buflen) parser.buf = buf; parser.buflen = buflen; parser.bufptr = 0; - parser.order_count = 0; parser.origin = CSS_ORIGIN_AUTHOR; parser.within_block = true; parser.space_separated = false; -- cgit v1.2.3