summaryrefslogtreecommitdiff
path: root/render/box.c
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2003-09-05 19:19:05 +0000
committerJames Bursa <james@netsurf-browser.org>2003-09-05 19:19:05 +0000
commit61778630bda945efba87b2b7e3b69d28876c4b78 (patch)
tree7b7f0c1dc5f08f3c2697b68d2de00b1686a87582 /render/box.c
parent83de722a5701e742c53131d13424d1de40b13208 (diff)
downloadnetsurf-61778630bda945efba87b2b7e3b69d28876c4b78.tar.gz
netsurf-61778630bda945efba87b2b7e3b69d28876c4b78.tar.bz2
[project @ 2003-09-05 19:19:05 by bursa]
Empty float bug fix. svn path=/import/netsurf/; revision=268
Diffstat (limited to 'render/box.c')
-rw-r--r--render/box.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/render/box.c b/render/box.c
index e13282e9b..307df5848 100644
--- a/render/box.c
+++ b/render/box.c
@@ -1264,6 +1264,16 @@ void box_normalise_inline_container(struct box *cont)
default:
assert(0);
}
+ if (child->children == 0) {
+ /* the child has destroyed itself: remove float */
+ if (child->prev == 0)
+ child->parent->children = child->next;
+ else
+ child->prev->next = child->next;
+ if (child->next != 0)
+ child->next->prev = child->prev;
+ box_free_box(child);
+ }
break;
case BOX_BLOCK:
case BOX_INLINE_CONTAINER: