mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 20:46:50 +03:00
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:
parent
50219b81e6
commit
223818b84c
@ -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 ||
|
||||
|
Loading…
Reference in New Issue
Block a user