Fix assert when replaced element has display:table;.

svn path=/trunk/netsurf/; revision=7950
This commit is contained in:
Michael Drake 2009-06-24 15:43:24 +00:00
parent 507cfe9313
commit f9b905be95

View File

@ -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