From 92d355ed30be7d2210924711c0a6041b55abf32b Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 23 Aug 2011 10:42:03 +0000 Subject: Replaced elements' children are not laid out, so don't look at their descendants. Fixes #3380281. svn path=/trunk/netsurf/; revision=12642 --- render/layout.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'render') diff --git a/render/layout.c b/render/layout.c index c676af789..0506c60d5 100644 --- a/render/layout.c +++ b/render/layout.c @@ -5050,6 +5050,10 @@ void layout_calculate_descendant_bboxes(struct box *box) return; } + if (box->flags & REPLACE_DIM) + /* Box's children aren't displayed if the box is replaced */ + return; + for (child = box->children; child; child = child->next) { if (child->type == BOX_FLOAT_LEFT || child->type == BOX_FLOAT_RIGHT) -- cgit v1.2.3