From ab877e680b9e66147bd36a2a58665c0441b68cc0 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 17 Oct 2022 12:45:05 +0100 Subject: html: layout: Improve block container assertions --- content/handlers/html/layout.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/handlers/html/layout.c b/content/handlers/html/layout.c index 99e9bcf19..9fe93a7ea 100644 --- a/content/handlers/html/layout.c +++ b/content/handlers/html/layout.c @@ -4433,9 +4433,9 @@ layout_compute_offsets(const css_unit_ctx *unit_len_ctx, css_fixed value = 0; css_unit unit = CSS_UNIT_PX; - assert(containing_block->width != UNKNOWN_WIDTH && - containing_block->width != AUTO && - containing_block->height != AUTO); + assert(containing_block->width != UNKNOWN_WIDTH); + assert(containing_block->width != AUTO); + assert(containing_block->height != AUTO); /* left */ type = css_computed_left(box->style, &value, &unit); -- cgit v1.2.3