From 4ce357f09bf1b2676a26c25c64f7d645dc4d5025 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Mon, 22 Aug 2005 22:49:52 +0000 Subject: [project @ 2005-08-22 22:49:52 by bursa] More work towards frame targets: add target parameter to box_create(), and copy target down the box tree during construction. svn path=/import/netsurf/; revision=1853 --- render/box.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'render/box.c') diff --git a/render/box.c b/render/box.c index 3ae85b1dd..e527cdde3 100644 --- a/render/box.c +++ b/render/box.c @@ -32,6 +32,7 @@ static bool box_contains_point(struct box *box, int x, int y); * * \param style style for the box (not copied) * \param href href for the box (not copied), or 0 + * \param target target for the box (not copied), or 0 * \param title title for the box (not copied), or 0 * \param id id for the box (not copied), or 0 * \param context context for allocations @@ -39,7 +40,7 @@ static bool box_contains_point(struct box *box, int x, int y); */ struct box * box_create(struct css_style *style, - char *href, char *title, char *id, + char *href, const char *target, char *title, char *id, void *context) { unsigned int i; @@ -66,7 +67,7 @@ struct box * box_create(struct css_style *style, box->space = 0; box->clone = 0; box->href = href; - box->target = 0; + box->target = target; box->title = title; box->columns = 1; box->rows = 1; -- cgit v1.2.3