diff options
author | James Bursa <james@netsurf-browser.org> | 2005-08-20 22:52:20 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2005-08-20 22:52:20 +0000 |
commit | 8afd957986ade6208ec315fcac410a290e40b68b (patch) | |
tree | b963490b452c9d35b633a6601a406c36aca24e62 /render/box.c | |
parent | 123fd6b94e170b2d44a935fab072f164fd793465 (diff) | |
download | netsurf-8afd957986ade6208ec315fcac410a290e40b68b.tar.gz netsurf-8afd957986ade6208ec315fcac410a290e40b68b.tar.bz2 |
[project @ 2005-08-20 22:52:20 by bursa]
Work towards implementing link target frames: add target attribute to struct box, add frame to struct content_html_object and html_fetch_object().
svn path=/import/netsurf/; revision=1849
Diffstat (limited to 'render/box.c')
-rw-r--r-- | render/box.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/render/box.c b/render/box.c index 37fc6f1d0..3ae85b1dd 100644 --- a/render/box.c +++ b/render/box.c @@ -66,6 +66,7 @@ struct box * box_create(struct css_style *style, box->space = 0; box->clone = 0; box->href = href; + box->target = 0; box->title = title; box->columns = 1; box->rows = 1; @@ -475,11 +476,13 @@ void box_dump(struct box *box, unsigned int depth) fprintf(stderr, "(object '%s') ", box->object->url); if (box->style) css_dump_style(box->style); - if (box->href != 0) + if (box->href) fprintf(stderr, " -> '%s'", box->href); - if (box->title != 0) + if (box->target) + fprintf(stderr, " |%s|", box->target); + if (box->title) fprintf(stderr, " [%s]", box->title); - if (box->id != 0) + if (box->id) fprintf(stderr, " <%s>", box->id); if (box->type == BOX_INLINE || box->type == BOX_INLINE_END) fprintf(stderr, " inline_end %p", box->inline_end); |