From d9280e8d72fceceff632b98ab400c9979eec0965 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Fri, 25 Feb 2011 19:14:38 +0000 Subject: Fix bug #2076786: do not apply fallback content to failed objects svn path=/trunk/netsurf/; revision=11797 --- render/box_construct.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'render/box_construct.c') diff --git a/render/box_construct.c b/render/box_construct.c index 42b9929ca..6f91629fd 100644 --- a/render/box_construct.c +++ b/render/box_construct.c @@ -1198,7 +1198,6 @@ bool box_object(BOX_SPECIAL_PARAMS) struct object_param *param; xmlChar *codebase, *classid, *data; xmlNode *c; - struct box *inline_container = 0; if (box->style && css_computed_display(box->style, n->parent == NULL) == CSS_DISPLAY_NONE) @@ -1325,15 +1324,6 @@ bool box_object(BOX_SPECIAL_PARAMS) box, 0, content->available_width, 1000, false)) return false; - /* convert children and place into fallback */ - for (c = n->children; c; c = c->next) { - if (!convert_xml_to_box(c, content, box->style, box, - &inline_container, 0, 0, 0)) - return false; - } - box->fallback = box->children; - box->children = box->last = 0; - *convert_children = false; return true; } -- cgit v1.2.3