diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2009-05-27 19:43:03 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2009-05-27 19:43:03 +0000 |
commit | 223818b84cb4ab244123038f8b275fa7180ea029 (patch) | |
tree | 484c00c28d19c80bbcc609902b7e50d4ed887a74 /render | |
parent | 50219b81e62b3aa25fdcf421427b86ec82c85b5f (diff) | |
download | netsurf-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.c | 3 |
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 || |