mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-24 10:24:36 +03:00
[project @ 2003-09-05 19:19:05 by bursa]
Empty float bug fix. svn path=/import/netsurf/; revision=268
This commit is contained in:
parent
83de722a57
commit
61778630bd
10
render/box.c
10
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user