diff options
author | James Bursa <james@netsurf-browser.org> | 2005-07-02 17:49:40 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2005-07-02 17:49:40 +0000 |
commit | 844f4af2de45b984b14a8321c1417dd2a66a6bad (patch) | |
tree | cc5a6489d5efe7ca34e77eea78db599ad60f8adb | |
parent | b81b983b36114b4be64c794012aa0429d1713ddb (diff) | |
download | netsurf-844f4af2de45b984b14a8321c1417dd2a66a6bad.tar.gz netsurf-844f4af2de45b984b14a8321c1417dd2a66a6bad.tar.bz2 |
[project @ 2005-07-02 17:49:40 by bursa]
Display contents of table->col[] in box_dump().
svn path=/import/netsurf/; revision=1774
-rw-r--r-- | render/box.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/render/box.c b/render/box.c index c6e1702d5..e871b866b 100644 --- a/render/box.c +++ b/render/box.c @@ -486,6 +486,17 @@ void box_dump(struct box *box, unsigned int depth) fprintf(stderr, " float_children %p", box->float_children); if (box->next_float) fprintf(stderr, " next_float %p", box->next_float); + if (box->col) { + fprintf(stderr, " (columns"); + for (i = 0; i != box->columns; i++) + fprintf(stderr, " (%s %i %i %i)", + ((const char *[]) {"UNKNOWN", "FIXED", + "AUTO", "PERCENT", "RELATIVE"}) + [box->col[i].type], + box->col[i].width, + box->col[i].min, box->col[i].max); + fprintf(stderr, ")"); + } fprintf(stderr, "\n"); for (c = box->children; c && c->next; c = c->next) |