Fix bug #3433954: make containing_block available to layout_table so it can resolve percentage height specified on an absolutely-positioned table.

svn path=/trunk/netsurf/; revision=13130
This commit is contained in:
John Mark Bell 2011-11-06 11:26:52 +00:00
parent da2b1ce44d
commit 4ba282c9c9

View File

@ -4677,9 +4677,13 @@ bool layout_absolute(struct box *box, struct box *containing_block,
if (!layout_block_context(box, -1, content))
return false;
} else if (box->type == BOX_TABLE) {
/* layout_table also expects the containing block to be
* stored in the float_container field */
box->float_container = containing_block;
/* \todo layout_table considers margins etc. again */
if (!layout_table(box, width, content))
return false;
box->float_container = NULL;
layout_solve_width(box, box->parent->width, box->width, 0, 0,
-1, -1);
}