diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2009-01-31 13:26:28 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2009-01-31 13:26:28 +0000 |
commit | 414f42faac3f69ab079c11c782cc8fb2da0e888a (patch) | |
tree | e02c2af3ffcfc29e0c203a17e69d457c15fe496f /render/box.c | |
parent | bce01f90bcdc3dd9d574d4bf40897c4d576dc9aa (diff) | |
download | netsurf-414f42faac3f69ab079c11c782cc8fb2da0e888a.tar.gz netsurf-414f42faac3f69ab079c11c782cc8fb2da0e888a.tar.bz2 |
Make inline boxes store the height of their line box and include in box tree dump.
svn path=/trunk/netsurf/; revision=6319
Diffstat (limited to 'render/box.c')
-rw-r--r-- | render/box.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/render/box.c b/render/box.c index 08272d166..32ed2c5b5 100644 --- a/render/box.c +++ b/render/box.c @@ -102,6 +102,7 @@ struct box * box_create(struct css_style *style, box->parent = NULL; box->fallback = NULL; box->inline_end = NULL; + box->line_height = 0; box->float_children = NULL; box->float_container = NULL; box->next_float = NULL; @@ -576,6 +577,9 @@ void box_dump(FILE *stream, struct box *box, unsigned int depth) fprintf(stream, " "); fprintf(stream, "%p ", box); + if (box->type == BOX_INLINE || box->type == BOX_TEXT || + box->type == BOX_INLINE_END) + fprintf(stream, "lh%i ", box->line_height); fprintf(stream, "x%i y%i w%i h%i ", box->x, box->y, box->width, box->height); if (box->max_width != UNKNOWN_MAX_WIDTH) |