diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2009-01-22 17:52:22 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2009-01-22 17:52:22 +0000 |
commit | beff85fa73e48122b5e0874e067129cebc5022db (patch) | |
tree | 343898b828be1425a3b06b08a6bf2b8e3cfde264 | |
parent | 3594651a6bdd43626e3b6490adc19327697ff411 (diff) | |
download | netsurf-beff85fa73e48122b5e0874e067129cebc5022db.tar.gz netsurf-beff85fa73e48122b5e0874e067129cebc5022db.tar.bz2 |
Ignore clear:left; when the only floats are on the right and vice versa.
svn path=/trunk/netsurf/; revision=6176
-rw-r--r-- | render/layout.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/render/layout.c b/render/layout.c index afb841c99..33f46b37c 100644 --- a/render/layout.c +++ b/render/layout.c @@ -1835,8 +1835,10 @@ bool layout_line(struct box *first, int *width, int *y, d->margin[BOTTOM]; if (d->style && (d->style->clear == CSS_CLEAR_NONE || - (d->style->clear != CSS_CLEAR_NONE && - left == 0 && right == 0)) && + (d->style->clear == CSS_CLEAR_LEFT && + left == 0) || + (d->style->clear == CSS_CLEAR_RIGHT && + right == 0)) && (b->width <= (x1 - x0) - x || (left == 0 && right == 0 && x == 0)) && cy >= cont->clear_level) { |