summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2022-10-17 12:45:05 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2022-10-29 16:58:55 +0100
commit2937067d5c6bdc2d615bbae48efcb62e530608a1 (patch)
tree1b54c38deb4abe90cb5b6531ee3a706981ab96a7
parent66d0185fbc1471682964d2af5e3d864cc4af8f1d (diff)
downloadnetsurf-2937067d5c6bdc2d615bbae48efcb62e530608a1.tar.gz
netsurf-2937067d5c6bdc2d615bbae48efcb62e530608a1.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);