summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2009-05-30 12:22:22 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2009-05-30 12:22:22 +0000
commit1a0f62f5296009e50374333e0d59b84027174bb9 (patch)
treed961b9126b2e02aa669b6ad4d5e5c89c7311ea7d /render
parentdbba3b4d377181c519467b6fe741a9074de8f55a (diff)
downloadnetsurf-1a0f62f5296009e50374333e0d59b84027174bb9.tar.gz
netsurf-1a0f62f5296009e50374333e0d59b84027174bb9.tar.bz2
Don't need height of css positioned boxes when laying out boxes in normal flow.
svn path=/trunk/netsurf/; revision=7656
Diffstat (limited to 'render')
-rw-r--r--render/layout.c6
1 files changed, 1 insertions, 5 deletions
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. */