summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-02-15 23:08:38 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-02-15 23:08:38 +0000
commit4f47cad962ab9cb49db5f249b740cdff9ba40b20 (patch)
tree91b64cacaff9ea28ee31fb3336000ab2234640ee
parent0707969f65fbf589e619b1b39efd62b619383f08 (diff)
downloadnetsurf-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
-rw-r--r--render/box_construct.c24
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);
}