From 4d55f43a3d6b87db37fc1f65be9ce121ac9d68a9 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 7 Apr 2007 02:29:32 +0000 Subject: Object sizes do not apply when calculating the extent of descendent bounding boxes. (fixes 1601881) svn path=/trunk/netsurf/; revision=3240 --- render/layout.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'render') diff --git a/render/layout.c b/render/layout.c index eb5e8e488..2789a58c2 100644 --- a/render/layout.c +++ b/render/layout.c @@ -3015,17 +3015,6 @@ void layout_calculate_descendant_bboxes(struct box *box) box->descendant_y1 = box->padding[TOP] + box->height + box->padding[BOTTOM] + box->border[BOTTOM]; - if (box->object) { - LOG(("%i %i %i %i", - box->descendant_x1, box->object->width, - box->descendant_y1, box->object->height)); - if (box->descendant_x1 < box->object->width) - box->descendant_x1 = box->object->width; - if (box->descendant_y1 < box->object->height) - box->descendant_y1 = box->object->height; - return; - } - if (box->type == BOX_INLINE || box->type == BOX_TEXT) return; -- cgit v1.2.3