From 3b366c53f9a94ae5df12f22ca2c9bc78137c3793 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 1 Mar 2011 21:48:38 +0000 Subject: More useful assert and remove box_dump call. svn path=/trunk/netsurf/; revision=11880 --- render/layout.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'render') 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, -- cgit v1.2.3