mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-26 19:34:25 +03:00
Child bbox is relative to current box.
svn path=/trunk/netsurf/; revision=11756
This commit is contained in:
parent
7f1108df32
commit
7eaa663d74
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user