summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2015-11-11 22:22:19 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2015-11-11 22:22:19 +0000
commite5a2538b6dcb6404d4404ebb4403e0c58e8ce9b1 (patch)
tree542e1c75563f0dd3b88671d1c20ddff115aef53a
parent401cc36924585ce8292212c73dc8aab372056620 (diff)
downloadnetsurf-e5a2538b6dcb6404d4404ebb4403e0c58e8ce9b1.tar.gz
netsurf-e5a2538b6dcb6404d4404ebb4403e0c58e8ce9b1.tar.bz2
Make it clearer why we're asserting.
-rw-r--r--render/layout.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/render/layout.c b/render/layout.c
index 99c4e995c..7905eabb7 100644
--- a/render/layout.c
+++ b/render/layout.c
@@ -5126,7 +5126,8 @@ void layout_calculate_descendant_bboxes(struct box *box)
{
struct box *child;
- assert((box->width != UNKNOWN_WIDTH) && (box->height != AUTO));
+ assert(box->width != UNKNOWN_WIDTH);
+ assert(box->height != AUTO);
/* assert((box->width >= 0) && (box->height >= 0)); */
/* Initialise box's descendant box to border edge box */