Make layout_apply_minmax_height assert if it's called with a box that shouldn't exist.

svn path=/trunk/netsurf/; revision=7590
This commit is contained in:
Michael Drake 2009-05-27 19:43:03 +00:00
parent 50219b81e6
commit 223818b84c

View File

@ -835,8 +835,9 @@ bool layout_apply_minmax_height(struct box *box, struct box *container)
bool updated = false;
/* Find containing block for percentage heights */
if (container) {
if (box->style->position == CSS_POSITION_ABSOLUTE) {
/* Box is absolutely positioned */
assert(container);
containing_block = container;
} else if (box->float_container &&
(box->style->float_ == CSS_FLOAT_LEFT ||