aboutsummaryrefslogtreecommitdiff
path: root/src/cssparser.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-02-02 07:40:23 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-02-02 07:40:23 +0100
commit8ef8b2eede01ecec243071342e751dc1147f750b (patch)
tree36c3befd61014bd4a07575a2ffaef0b0f39664cf /src/cssparser.cc
parent13082c04fe0d2f167b6888108b3672e94a2fb3ea (diff)
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.
Diffstat (limited to 'src/cssparser.cc')
-rw-r--r--src/cssparser.cc5
1 files changed, 1 insertions, 4 deletions
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;