mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 13:06:49 +03:00
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:
parent
565ea1bc1e
commit
5452d31d37
@ -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,
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user