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/html.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/html.c')
-rw-r--r-- | render/html.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/render/html.c b/render/html.c index e5ce41b23..2d84f3a17 100644 --- a/render/html.c +++ b/render/html.c @@ -744,21 +744,22 @@ void html_convert_css_callback(content_msg msg, struct content *css, /** * Start a fetch for an object required by a page. * - * \param c content structure - * \param url URL of object to fetch (copied) - * \param box box that will contain the object + * \param c content structure + * \param url URL of object to fetch (copied) + * \param box box that will contain the object * \param permitted_types array of types, terminated by CONTENT_UNKNOWN, * or 0 if all types except OTHER and UNKNOWN acceptable * \param available_width estimate of width of object * \param available_height estimate of height of object - * \param background this is a background image + * \param background this is a background image + * \param frame name of frame, or 0 if not a frame (copied) * \return true on success, false on memory exhaustion */ bool html_fetch_object(struct content *c, char *url, struct box *box, const content_type *permitted_types, int available_width, int available_height, - bool background) + bool background, char *frame) { unsigned int i = c->data.html.object_count; struct content_html_object *object; @@ -788,6 +789,9 @@ bool html_fetch_object(struct content *c, char *url, struct box *box, c->data.html.object[i].permitted_types = permitted_types; c->data.html.object[i].background = background; c->data.html.object[i].content = c_fetch; + c->data.html.object[i].frame = 0; + if (frame) + c->data.html.object[i].frame = talloc_strdup(c, frame); c->data.html.object_count++; c->active++; |