summaryrefslogtreecommitdiff
path: root/render/layout.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-03-01 21:48:38 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-03-01 21:48:38 +0000
commit3b366c53f9a94ae5df12f22ca2c9bc78137c3793 (patch)
treecb546415bc5989e8b06aa32e5e04dcc465365d7b /render/layout.c
parentddfdf2a629fbccc652e7c0c68f35babbec1a839f (diff)
downloadnetsurf-3b366c53f9a94ae5df12f22ca2c9bc78137c3793.tar.gz
netsurf-3b366c53f9a94ae5df12f22ca2c9bc78137c3793.tar.bz2
More useful assert and remove box_dump call.
svn path=/trunk/netsurf/; revision=11880
Diffstat (limited to 'render/layout.c')
-rw-r--r--render/layout.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/render/layout.c b/render/layout.c
index 3fc94f0c6..c42de276c 100644
--- a/render/layout.c
+++ b/render/layout.c
@@ -4603,14 +4603,8 @@ void layout_calculate_descendant_bboxes(struct box *box)
{
struct box *child;
- if ((box->width == UNKNOWN_WIDTH) || (box->height == AUTO) /*||
- box->width < 0 || box->height < 0*/) {
- LOG(("%p has bad width or height", box));
- /*while (box->parent)
- box = box->parent;
- box_dump(box, 0);*/
- assert(0);
- }
+ assert((box->width != UNKNOWN_WIDTH) && (box->height != AUTO));
+ /* assert((box->width >= 0) && (box->height >= 0)); */
/* Initialise box's descendant box to border edge box */
layout_get_box_bbox(box, &box->descendant_x0, &box->descendant_y0,