summaryrefslogtreecommitdiff
path: root/render/box_construct.c
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2006-10-08 22:46:25 +0000
committerJames Bursa <james@netsurf-browser.org>2006-10-08 22:46:25 +0000
commita785bc25f7d34a7121739219ccdc063e4ac8ba33 (patch)
tree405d361f065cc5a01ee19ca228eb7816c3bb0c93 /render/box_construct.c
parentd2469b806c00b82a708cd14caec8c9e3d1286833 (diff)
downloadnetsurf-a785bc25f7d34a7121739219ccdc063e4ac8ba33.tar.gz
netsurf-a785bc25f7d34a7121739219ccdc063e4ac8ba33.tar.bz2
Modify implementation of absolute positioning to support "static positions". Absolutely positioned boxes are now in their original place in the tree instead of linked from absolute_children.
svn path=/trunk/netsurf/; revision=2984
Diffstat (limited to 'render/box_construct.c')
-rw-r--r--render/box_construct.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/render/box_construct.c b/render/box_construct.c
index 025781ce5..bfaf104b9 100644
--- a/render/box_construct.c
+++ b/render/box_construct.c
@@ -174,7 +174,6 @@ bool xml_to_box(xmlNode *n, struct content *c)
root.parent = NULL;
root.float_children = NULL;
root.next_float = NULL;
- root.absolute_children = NULL;
c->data.html.style = talloc_memdup(c, &css_base_style,
sizeof css_base_style);
@@ -415,18 +414,6 @@ bool box_construct_element(xmlNode *n, struct content *content,
containing_block_c,
href, target, title))
return false;
- } else if ((style->position == CSS_POSITION_ABSOLUTE ||
- style->position == CSS_POSITION_FIXED) &&
- containing_block) {
- /* absolutely positioned */
- box_add_absolute_child(containing_block, box);
- inline_container_c = 0;
- for (c = n->children; convert_children && c; c = c->next)
- if (!convert_xml_to_box(c, content, style, box,
- &inline_container_c,
- containing_block_c,
- href, target, title))
- return false;
} else {
if (style->float_ == CSS_FLOAT_LEFT ||
style->float_ == CSS_FLOAT_RIGHT) {