mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 04:56:50 +03:00
Don't clear floats if there aren't floats to clear.
svn path=/trunk/netsurf/; revision=11270
This commit is contained in:
parent
4f75b67cdd
commit
40a034b08f
@ -2315,8 +2315,15 @@ bool layout_line(struct box *first, int *width, int *y,
|
||||
|
||||
place_float_below(b, *width, cx, fy, cont);
|
||||
fy = b->y;
|
||||
if (d->style && css_computed_clear(d->style) !=
|
||||
CSS_CLEAR_NONE) {
|
||||
if (d->style && (
|
||||
(css_computed_clear(d->style) ==
|
||||
CSS_CLEAR_LEFT && left != 0) ||
|
||||
(css_computed_clear(d->style) ==
|
||||
CSS_CLEAR_RIGHT &&
|
||||
right != 0) ||
|
||||
(css_computed_clear(d->style) ==
|
||||
CSS_CLEAR_BOTH &&
|
||||
(left != 0 || right != 0)))) {
|
||||
/* to be cleared below existing
|
||||
* floats */
|
||||
if (b->type == BOX_FLOAT_LEFT)
|
||||
|
Loading…
Reference in New Issue
Block a user