From 8f999376d56043ffb4c5fa8310e4eb65a5567e23 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Thu, 6 Mar 2008 23:20:32 +0000 Subject: Bring definition of {escape} in line with CSS 2.1 spec. Require units when parsing css lengths. Correctly ignore background: meta-properties which have multiple instances of sub-properties (e.g. foo { background: red pink; }) svn path=/trunk/netsurf/; revision=3893 --- css/css.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'css/css.c') diff --git a/css/css.c b/css/css.c index dde2a14e8..bff7deb55 100644 --- a/css/css.c +++ b/css/css.c @@ -417,6 +417,8 @@ bool css_convert(struct content *c, int width, int height) struct css_parser_token token_data; union content_msg_data msg_data; + /* css_parser_Trace(stderr, "CSS: "); */ + c->data.css.css = malloc(sizeof *c->data.css.css); parser = css_parser_Alloc(malloc); source_data = (unsigned char *) talloc_realloc(c, c->source_data, char, -- cgit v1.2.3