diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2008-08-24 18:55:55 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2008-08-24 18:55:55 +0000 |
commit | 8124d3d5ad0e83b1f0b26796cf84e8fa4b563a66 (patch) | |
tree | 03025ed2bc44684b17c0dca5e282dc96d9b765b5 | |
parent | 9d9cb291c746c16e52234d0cc8439cc948b87e67 (diff) | |
download | netsurf-8124d3d5ad0e83b1f0b26796cf84e8fa4b563a66.tar.gz netsurf-8124d3d5ad0e83b1f0b26796cf84e8fa4b563a66.tar.bz2 |
Possibly fix BeOS / AmigaOS layout assert on line 190 for particular pages.
svn path=/trunk/netsurf/; revision=5197
-rw-r--r-- | render/layout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/render/layout.c b/render/layout.c index 252b17429..492b4aa01 100644 --- a/render/layout.c +++ b/render/layout.c @@ -345,7 +345,7 @@ bool layout_block_context(struct box *block, struct content *content) /* Unless the box has an overflow style of visible, the box * establishes a new block context. */ - if (box->type != BOX_INLINE_CONTAINER && box->style && + if (box->type == BOX_BLOCK && box->style && box->style->overflow != CSS_OVERFLOW_VISIBLE) { cy += max_pos_margin - max_neg_margin; box->y += max_pos_margin - max_neg_margin; @@ -1254,7 +1254,7 @@ bool layout_line(struct box *first, int *width, int *y, gadget_size.unit = CSS_UNIT_EM; gadget_size.value = 1; - + LOG(("first %p, first->text '%.*s', width %i, y %i, cx %i, cy %i", first, (int) first->length, first->text, *width, *y, cx, cy)); |