Make css_dump_style dump to a specified stream rather than assuming stderr. Makes box_dump on <>RISC OS behave sensibly.

svn path=/trunk/netsurf/; revision=4538
This commit is contained in:
John Mark Bell 2008-07-09 11:49:27 +00:00
parent 565ea1bc1e
commit 5452d31d37
3 changed files with 247 additions and 236 deletions

479
css/css.c

File diff suppressed because it is too large Load Diff

View File

@ -693,7 +693,7 @@ void css_parse_property_list(struct content *c, struct css_style * style,
colour named_colour(const char *name);
colour hex_colour(const char *text, int length);
void css_dump_style(const struct css_style * const style);
void css_dump_style(FILE *stream, const struct css_style * const style);
void css_dump_stylesheet(const struct css_stylesheet * stylesheet);
float css_len2px(const struct css_length *length,

View File

@ -576,7 +576,7 @@ void box_dump(FILE *stream, struct box *box, unsigned int depth)
if (box->gadget)
fprintf(stream, "(gadget) ");
if (box->style)
css_dump_style(box->style);
css_dump_style(stream, box->style);
if (box->href)
fprintf(stream, " -> '%s'", box->href);
if (box->target)