diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-02-15 23:08:38 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-02-15 23:08:38 +0000 |
commit | 4f47cad962ab9cb49db5f249b740cdff9ba40b20 (patch) | |
tree | 91b64cacaff9ea28ee31fb3336000ab2234640ee /render/box_construct.c | |
parent | 0707969f65fbf589e619b1b39efd62b619383f08 (diff) | |
download | netsurf-4f47cad962ab9cb49db5f249b740cdff9ba40b20.tar.gz netsurf-4f47cad962ab9cb49db5f249b740cdff9ba40b20.tar.bz2 |
Non block level :after boxes aren't supported yet, so don't generate them.
svn path=/trunk/netsurf/; revision=11691
Diffstat (limited to 'render/box_construct.c')
-rw-r--r-- | render/box_construct.c | 24 |
1 files changed, 2 insertions, 22 deletions
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); } |