From 1a0f62f5296009e50374333e0d59b84027174bb9 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 30 May 2009 12:22:22 +0000 Subject: Don't need height of css positioned boxes when laying out boxes in normal flow. svn path=/trunk/netsurf/; revision=7656 --- render/layout.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'render') diff --git a/render/layout.c b/render/layout.c index fe787772a..85d943402 100644 --- a/render/layout.c +++ b/render/layout.c @@ -244,7 +244,7 @@ bool layout_block_context(struct box *block, int viewport_height, gui_multitask(); #endif - block->float_children = 0; + block->float_children = NULL; block->clear_level = 0; /* special case if the block contains an object */ @@ -320,10 +320,6 @@ bool layout_block_context(struct box *block, int viewport_height, (box->style->position == CSS_POSITION_ABSOLUTE|| box->style->position == CSS_POSITION_FIXED)) { box->x = box->parent->padding[LEFT]; - layout_find_dimensions(box->parent->width, - viewport_height, box, box->style, - NULL, &(box->height), NULL, - NULL, NULL, NULL, NULL); /* absolute positioned; this element will establish * its own block context when it gets laid out later, * so no need to look at its children now. */ -- cgit v1.2.3