diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2009-06-24 15:43:24 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2009-06-24 15:43:24 +0000 |
commit | f9b905be95e5be8dd7fc029b1660dc5e344969c1 (patch) | |
tree | ac45f60c9bd1e0789195af18fd585a72d8a710d0 | |
parent | 507cfe93139f94306d2ac4c0655ff8597c2368fd (diff) | |
download | netsurf-f9b905be95e5be8dd7fc029b1660dc5e344969c1.tar.gz netsurf-f9b905be95e5be8dd7fc029b1660dc5e344969c1.tar.bz2 |
Fix assert when replaced element has display:table;.
svn path=/trunk/netsurf/; revision=7950
-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 85d943402..6c3f0897c 100644 --- a/render/layout.c +++ b/render/layout.c @@ -376,8 +376,10 @@ bool layout_block_context(struct box *block, int viewport_height, } layout_block_find_dimensions(box->parent->width, viewport_height, lm, rm, box); - layout_block_add_scrollbar(box, RIGHT); - layout_block_add_scrollbar(box, BOTTOM); + if (box->type == BOX_BLOCK) { + layout_block_add_scrollbar(box, RIGHT); + layout_block_add_scrollbar(box, BOTTOM); + } } else if (box->type == BOX_TABLE) { if (box->style->width.width == CSS_WIDTH_AUTO) { /* max available width may be diminished due to |