summaryrefslogtreecommitdiff
path: root/css/css.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2004-06-11 12:51:40 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2004-06-11 12:51:40 +0000
commite93271501092ea328e2163a4d3c4f348e48ca572 (patch)
treec65add4d779d8b4f3ada24de8180d76440caba6d /css/css.c
parent0efd285302797848b7bec0f5dad95aa043e9aa1b (diff)
downloadnetsurf-e93271501092ea328e2163a4d3c4f348e48ca572.tar.gz
netsurf-e93271501092ea328e2163a4d3c4f348e48ca572.tar.bz2
[project @ 2004-06-11 12:51:40 by jmb]
Fix for crash caused by inline style attributes specifying background images. svn path=/import/netsurf/; revision=961
Diffstat (limited to 'css/css.c')
-rw-r--r--css/css.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/css/css.c b/css/css.c
index 3072c3a47..708e24ad7 100644
--- a/css/css.c
+++ b/css/css.c
@@ -883,11 +883,13 @@ bool css_match_detail(const struct css_selector *detail,
/**
* Parse a stand-alone CSS property list.
*
+ * \param c parent content
* \param style css_style to update
* \param str property list, as found in HTML style attributes
*/
-void css_parse_property_list(struct css_style * style, char * str)
+void css_parse_property_list(struct content *c, struct css_style * style,
+ char * str)
{
unsigned char *source_data;
unsigned char *current, *end, *token_text;
@@ -895,7 +897,7 @@ void css_parse_property_list(struct css_style * style, char * str)
unsigned int i;
int token;
void *parser;
- struct css_parser_params param = {true, 0, 0, false, false};
+ struct css_parser_params param = {true, c, 0, false, false};
struct css_parser_token token_data;
const struct css_parser_token token_start = { "{", 1 };
const struct css_parser_token token_end = { "}", 1 };