summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
Diffstat (limited to 'render')
-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,