summaryrefslogtreecommitdiff
path: root/render/layout.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-02-22 15:34:36 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-02-22 15:34:36 +0000
commit7eaa663d74f7ca2aba485b927b702f32ffb6c600 (patch)
treec231761525b4ecd613e9a980d1ef5d36eb9c192d /render/layout.c
parent7f1108df32bb409b6331a1d1f8ba2e22a8a06e9f (diff)
downloadnetsurf-7eaa663d74f7ca2aba485b927b702f32ffb6c600.tar.gz
netsurf-7eaa663d74f7ca2aba485b927b702f32ffb6c600.tar.bz2
Child bbox is relative to current box.
svn path=/trunk/netsurf/; revision=11756
Diffstat (limited to 'render/layout.c')
-rw-r--r--render/layout.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/render/layout.c b/render/layout.c
index ba5178d07..15e0a39df 100644
--- a/render/layout.c
+++ b/render/layout.c
@@ -4537,6 +4537,11 @@ static void layout_update_descendant_bbox(struct box *box, struct box *child,
/* child's descendants don't matter; use child's border edge */
layout_get_box_bbox(child, &child_desc_x0, &child_desc_y0,
&child_desc_x1, &child_desc_y1);
+ /* get the bbox relative to box */
+ child_desc_x0 += child_x;
+ child_desc_y0 += child_y;
+ child_desc_x1 += child_x;
+ child_desc_y1 += child_y;
}
/* increase box's descendant bbox to contain descendants */