summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2022-10-17 12:45:05 +0100
committerMichael Drake <mdrake.unique@gmail.com>2022-10-29 20:30:48 +0100
commitab877e680b9e66147bd36a2a58665c0441b68cc0 (patch)
tree54191d6c4925bc495b8110432dfa4385c20fc3f6
parent399f0063ba49db594c2c05296a53b9bea339f3a4 (diff)
downloadnetsurf-ab877e680b9e66147bd36a2a58665c0441b68cc0.tar.gz
netsurf-ab877e680b9e66147bd36a2a58665c0441b68cc0.tar.bz2
html: layout: Improve block container assertions
-rw-r--r--content/handlers/html/layout.c6
1 files 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);