From 844f4af2de45b984b14a8321c1417dd2a66a6bad Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sat, 2 Jul 2005 17:49:40 +0000 Subject: [project @ 2005-07-02 17:49:40 by bursa] Display contents of table->col[] in box_dump(). svn path=/import/netsurf/; revision=1774 --- render/box.c | 11 +++++++++++ 1 file changed, 11 insertions(+) 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) -- cgit v1.2.3