diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-07-10 00:26:37 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-07-10 00:26:37 +0000 |
commit | 5feb7018c5228a22d370d070c1f7c3dad2c71e25 (patch) | |
tree | 9899af55ee95f4e48f2df822ce43deccdafb2829 /content/content.c | |
parent | 801ef751afd7b5adb7ef41335192638c8443c6f6 (diff) | |
download | netsurf-5feb7018c5228a22d370d070c1f7c3dad2c71e25.tar.gz netsurf-5feb7018c5228a22d370d070c1f7c3dad2c71e25.tar.bz2 |
Replace parent_url with a pointer to the parent content.
svn path=/trunk/netsurf/; revision=8428
Diffstat (limited to 'content/content.c')
-rw-r--r-- | content/content.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/content/content.c b/content/content.c index 72ed2f292..bda652fad 100644 --- a/content/content.c +++ b/content/content.c @@ -596,6 +596,8 @@ bool content_set_type(struct content *c, content_type type, * a content per user */ const char *referer = c->fetch ? fetch_get_referer(c->fetch) : NULL; + struct content *parent = + c->fetch ? fetch_get_parent(c->fetch) : NULL; while (c->user_list->next->next) { clone = content_create(c->url); @@ -630,8 +632,7 @@ bool content_set_type(struct content *c, content_type type, fetchcache_go(clone, referer, callback, p1, p2, clone->width, clone->height, - 0, 0, false, - referer ? referer : c->url); + 0, 0, false, parent); } } |