diff options
author | James Bursa <james@netsurf-browser.org> | 2005-08-22 22:49:52 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2005-08-22 22:49:52 +0000 |
commit | 4ce357f09bf1b2676a26c25c64f7d645dc4d5025 (patch) | |
tree | 555e10babf9151f1be6c97b4ed9162789283c1a1 /render/box.c | |
parent | 08e8ee3ed19642b9fbad9f3d8764a0befd7f2a58 (diff) | |
download | netsurf-4ce357f09bf1b2676a26c25c64f7d645dc4d5025.tar.gz netsurf-4ce357f09bf1b2676a26c25c64f7d645dc4d5025.tar.bz2 |
[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
Diffstat (limited to 'render/box.c')
-rw-r--r-- | render/box.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; |