diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2022-10-17 12:45:05 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2022-10-29 19:41:45 +0100 |
commit | 4e69654e5d79ad7db9d76cc2a88a1430c8522487 (patch) | |
tree | 54191d6c4925bc495b8110432dfa4385c20fc3f6 | |
parent | 201f2378696b63f41dd0b2ef2fda80806433b65a (diff) | |
download | netsurf-4e69654e5d79ad7db9d76cc2a88a1430c8522487.tar.gz netsurf-4e69654e5d79ad7db9d76cc2a88a1430c8522487.tar.bz2 |
html: layout: Improve block container assertions
-rw-r--r-- | content/handlers/html/layout.c | 6 |
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); |