summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2009-05-27 19:43:03 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2009-05-27 19:43:03 +0000
commit223818b84cb4ab244123038f8b275fa7180ea029 (patch)
tree484c00c28d19c80bbcc609902b7e50d4ed887a74 /render
parent50219b81e62b3aa25fdcf421427b86ec82c85b5f (diff)
downloadnetsurf-223818b84cb4ab244123038f8b275fa7180ea029.tar.gz
netsurf-223818b84cb4ab244123038f8b275fa7180ea029.tar.bz2
Make layout_apply_minmax_height assert if it's called with a box that shouldn't exist.
svn path=/trunk/netsurf/; revision=7590
Diffstat (limited to 'render')
-rw-r--r--render/layout.c3
1 files changed, 2 insertions, 1 deletions
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 ||