summaryrefslogtreecommitdiff
path: root/render/box_normalise.c
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2005-08-22 22:49:52 +0000
committerJames Bursa <james@netsurf-browser.org>2005-08-22 22:49:52 +0000
commit4ce357f09bf1b2676a26c25c64f7d645dc4d5025 (patch)
tree555e10babf9151f1be6c97b4ed9162789283c1a1 /render/box_normalise.c
parent08e8ee3ed19642b9fbad9f3d8764a0befd7f2a58 (diff)
downloadnetsurf-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_normalise.c')
-rw-r--r--render/box_normalise.c13
1 files changed, 7 insertions, 6 deletions
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);