diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2015-11-01 14:05:27 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2015-11-01 14:06:06 +0000 |
commit | ed5fd918438ca3f564a5e27f363eddc1439dd58e (patch) | |
tree | ac30935e8c1252c43ee53cb489cb5cddb8936bcc | |
parent | 336326af3aab93f31474fa6de28782457ae4a1c0 (diff) | |
download | netsurf-ed5fd918438ca3f564a5e27f363eddc1439dd58e.tar.gz netsurf-ed5fd918438ca3f564a5e27f363eddc1439dd58e.tar.bz2 |
Fix overflow-{x|y} handling.
-rw-r--r-- | render/layout.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/render/layout.c b/render/layout.c index 154ff75ae..99c4e995c 100644 --- a/render/layout.c +++ b/render/layout.c @@ -5081,6 +5081,7 @@ static void layout_update_descendant_bbox(struct box *box, struct box *child, overflow_y = css_computed_overflow_y(child->style); } + /* Get child's border edge */ layout_get_box_bbox(child, &child_desc_x0, &child_desc_y0, &child_desc_x1, &child_desc_y1); @@ -5089,10 +5090,10 @@ static void layout_update_descendant_bbox(struct box *box, struct box *child, /* get child's descendant bbox relative to box */ child_desc_x0 = child->descendant_x0; child_desc_x1 = child->descendant_x1; - } else if (overflow_y == CSS_OVERFLOW_VISIBLE && + } + if (overflow_y == CSS_OVERFLOW_VISIBLE && html_object == false) { - /* child's descendants don't matter; use child's border edge */ - /* get the bbox relative to box */ + /* get child's descendant bbox relative to box */ child_desc_y0 = child->descendant_y0; child_desc_y1 = child->descendant_y1; } |