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_normalise.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'render/box_normalise.c') diff --git a/render/box_normalise.c b/render/box_normalise.c index 5fd78f419..d153a1486 100644 --- a/render/box_normalise.c +++ b/render/box_normalise.c @@ -129,7 +129,8 @@ bool box_normalise_block(struct box *block, struct content *c) if (!style) return false; css_cascade(style, &css_blank_style); - table = box_create(style, block->href, 0, 0, c); + table = box_create(style, block->href, block->target, + 0, 0, c); if (!table) { css_free_style(style); return false; @@ -212,8 +213,8 @@ bool box_normalise_table(struct box *table, struct content * c) return false; } css_cascade(style, &css_blank_style); - row_group = box_create(style, table->href, 0, - 0, c); + row_group = box_create(style, table->href, + table->target, 0, 0, c); if (!row_group) { free(col_info.spans); css_free_style(style); @@ -384,8 +385,8 @@ bool box_normalise_table_row_group(struct box *row_group, if (!style) return false; css_cascade(style, &css_blank_style); - row = box_create(style, row_group->href, 0, - 0, c); + row = box_create(style, row_group->href, + row_group->target, 0, 0, c); if (!row) { css_free_style(style); return false; @@ -483,7 +484,7 @@ bool box_normalise_table_row(struct box *row, if (!style) return false; css_cascade(style, &css_blank_style); - cell = box_create(style, row->href, 0, 0, + cell = box_create(style, row->href, row->target, 0, 0, c); if (!cell) { css_free_style(style); -- cgit v1.2.3