From 223818b84cb4ab244123038f8b275fa7180ea029 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 27 May 2009 19:43:03 +0000 Subject: Make layout_apply_minmax_height assert if it's called with a box that shouldn't exist. svn path=/trunk/netsurf/; revision=7590 --- render/layout.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'render') diff --git a/render/layout.c b/render/layout.c index 4beebaef7..f78feced1 100644 --- a/render/layout.c +++ b/render/layout.c @@ -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 || -- cgit v1.2.3