[project @ 2005-07-02 17:49:40 by bursa]

Display contents of table->col[] in box_dump().

svn path=/import/netsurf/; revision=1774
This commit is contained in:
James Bursa 2005-07-02 17:49:40 +00:00
parent b81b983b36
commit 844f4af2de
1 changed files with 11 additions and 0 deletions

View File

@ -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)