diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-02-23 13:11:19 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-02-23 13:11:19 +0000 |
commit | 2ef37af60c21e6ecb585db22ae1a4ad731753e1d (patch) | |
tree | 0b0e6d603f66b5a62d2a0a9b124fdba37a536aa9 /render/layout.c | |
parent | 5c2d8c35f73d363d44ba30cd0b2be1eb2563ad57 (diff) | |
download | netsurf-2ef37af60c21e6ecb585db22ae1a4ad731753e1d.tar.gz netsurf-2ef37af60c21e6ecb585db22ae1a4ad731753e1d.tar.bz2 |
When box has no style, handle descendant calc as for overflow: visible.
svn path=/trunk/netsurf/; revision=11770
Diffstat (limited to 'render/layout.c')
-rw-r--r-- | render/layout.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/render/layout.c b/render/layout.c index 15e0a39df..3f2eb87c6 100644 --- a/render/layout.c +++ b/render/layout.c @@ -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; |