From b0c5b7498704aff375da29fc701b1a7e6941b6ba Mon Sep 17 00:00:00 2001 From: James Bursa Date: Mon, 2 Feb 2004 00:22:59 +0000 Subject: [project @ 2004-02-02 00:22:59 by bursa] Start at margin / padding / border support. svn path=/import/netsurf/; revision=529 --- render/box.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'render/box.c') 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; } -- cgit v1.2.3