When box has no style, handle descendant calc as for overflow: visible.

svn path=/trunk/netsurf/; revision=11770
This commit is contained in:
Michael Drake 2011-02-23 13:11:19 +00:00
parent 5c2d8c35f7
commit 2ef37af60c
1 changed files with 3 additions and 2 deletions

View File

@ -4526,8 +4526,9 @@ static void layout_update_descendant_bbox(struct box *box, struct box *child,
int child_x = child->x - off_x;
int child_y = child->y - off_y;
if (child->style && css_computed_overflow(child->style) ==
CSS_OVERFLOW_VISIBLE) {
if (child->style == NULL ||
(child->style && css_computed_overflow(child->style) ==
CSS_OVERFLOW_VISIBLE)) {
/* get child's descendant bbox relative to box */
child_desc_x0 = child_x + child->descendant_x0;
child_desc_y0 = child_y + child->descendant_y0;