summaryrefslogtreecommitdiff
path: root/render/render.c
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2002-05-27 23:21:11 +0000
committerJames Bursa <james@netsurf-browser.org>2002-05-27 23:21:11 +0000
commitce0d001eb13221644242270985975e967a32b297 (patch)
treec31e951ba1c65542c37660121147230fbab7e92f /render/render.c
parent16f1b4d913430975e1c52077a110c483cbf570cc (diff)
downloadnetsurf-ce0d001eb13221644242270985975e967a32b297.tar.gz
netsurf-ce0d001eb13221644242270985975e967a32b297.tar.bz2
[project @ 2002-05-27 23:21:11 by bursa]
Simple left float implementation. svn path=/import/netsurf/; revision=19
Diffstat (limited to 'render/render.c')
-rw-r--r--render/render.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/render/render.c b/render/render.c
index 6661b1ad2..0ec17fb37 100644
--- a/render/render.c
+++ b/render/render.c
@@ -1,5 +1,5 @@
/**
- * $Id: render.c,v 1.11 2002/05/21 21:32:35 bursa Exp $
+ * $Id: render.c,v 1.12 2002/05/27 23:21:11 bursa Exp $
*/
#include <assert.h>
@@ -124,6 +124,10 @@ void render_dump(struct box * box, unsigned long x, unsigned long y)
fflush(stdout);
for (c = box->children; c != 0; c = c->next)
+ if (c->type != BOX_FLOAT)
+ render_dump(c, x + box->x, y + box->y);
+
+ for (c = box->float_children; c != 0; c = c->next_float)
render_dump(c, x + box->x, y + box->y);
}
@@ -158,7 +162,7 @@ int main(int argc, char *argv[])
html_box = doc_box->children;
/*box_dump(html_box, 0);*/
- layout_block(html_box, 600);
+ layout_document(html_box, 600);
/* box_dump(html_box, 0);*/
/* render_plain(html_box);*/
printf("%li %li\n", html_box->width, html_box->height);