From 4f47cad962ab9cb49db5f249b740cdff9ba40b20 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 15 Feb 2011 23:08:38 +0000 Subject: Non block level :after boxes aren't supported yet, so don't generate them. svn path=/trunk/netsurf/; revision=11691 --- render/box_construct.c | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) (limited to 'render') diff --git a/render/box_construct.c b/render/box_construct.c index 209b9cc39..42b9929ca 100644 --- a/render/box_construct.c +++ b/render/box_construct.c @@ -660,28 +660,8 @@ void box_construct_after(xmlNode *n, struct content *content, } /* set box type from computed display */ - if ((css_computed_position(after_style) == - CSS_POSITION_ABSOLUTE || - css_computed_position(after_style) == - CSS_POSITION_FIXED) && - (css_computed_display_static(after_style) == - CSS_DISPLAY_INLINE || - css_computed_display_static(after_style) == - CSS_DISPLAY_INLINE_BLOCK || - css_computed_display_static(after_style) == - CSS_DISPLAY_INLINE_TABLE)) { - /* Special case for absolute positioning: make - * absolute inlines into inline block so that - * the boxes are constructed in an inline - * container as if they were not absolutely - * positioned. Layout expects and handles - * this. */ - after->type = box_map[CSS_DISPLAY_INLINE_BLOCK]; - } else { - /* Normal mapping */ - after->type = box_map[css_computed_display( - after_style, n->parent == NULL)]; - } + after->type = box_map[css_computed_display( + after_style, n->parent == NULL)]; box_add_child(box, after); } -- cgit v1.2.3