diff options
author | James Bursa <james@netsurf-browser.org> | 2004-02-02 00:22:59 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2004-02-02 00:22:59 +0000 |
commit | b0c5b7498704aff375da29fc701b1a7e6941b6ba (patch) | |
tree | a613c9fcf6cccf6d99d33034eefb9e3502f1c0a6 /render/box.c | |
parent | dbda424e61ae158f8cca6d58d6d967b93003b50c (diff) | |
download | netsurf-b0c5b7498704aff375da29fc701b1a7e6941b6ba.tar.gz netsurf-b0c5b7498704aff375da29fc701b1a7e6941b6ba.tar.bz2 |
[project @ 2004-02-02 00:22:59 by bursa]
Start at margin / padding / border support.
svn path=/import/netsurf/; revision=529
Diffstat (limited to 'render/box.c')
-rw-r--r-- | render/box.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/render/box.c b/render/box.c index d50b897cd..4057ba181 100644 --- a/render/box.c +++ b/render/box.c @@ -162,6 +162,7 @@ void box_add_child(struct box * parent, struct box * child) struct box * box_create(struct css_style * style, char *href, char *title, pool box_pool) { + unsigned int i; struct box *box = pool_alloc(box_pool, sizeof (struct box)); assert(box); box->type = BOX_INLINE; @@ -195,6 +196,8 @@ struct box * box_create(struct css_style * style, #endif box->x = box->y = 0; box->height = 0; + for (i = 0; i != 4; i++) + box->margin[i] = box->padding[i] = box->border[i] = 0; return box; } |