summaryrefslogtreecommitdiff
path: root/render/directory.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2010-04-04 12:41:19 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2010-04-04 12:41:19 +0000
commit79ce683b4e6d34fe327b00f1e427e476016cfab0 (patch)
tree2ed3ba800e8f570000f97588ce668eb47168565a /render/directory.c
parent3daffe3d6b07be7bbeedbcb2586f11edd872cbd6 (diff)
downloadnetsurf-79ce683b4e6d34fe327b00f1e427e476016cfab0.tar.gz
netsurf-79ce683b4e6d34fe327b00f1e427e476016cfab0.tar.bz2
Most of a stop implementation.
Remaining work: 1) Clone content_html_data 2) Cloning content_css_data requires the charset of the old content 3) Calling hlcache_handle_abort() before a content has been created must clean up the retrieval context. svn path=/trunk/netsurf/; revision=10236
Diffstat (limited to 'render/directory.c')
-rw-r--r--render/directory.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/render/directory.c b/render/directory.c
index 969b0c5b9..193941ecf 100644
--- a/render/directory.c
+++ b/render/directory.c
@@ -150,3 +150,14 @@ void directory_destroy(struct content *c)
return;
}
+
+bool directory_clone(const struct content *old, struct content *new_content)
+{
+ /* This will only get called if the content is cloned before
+ * content_convert() is called. Simply replay creation. */
+ if (directory_create(new_content, NULL) == false)
+ return false;
+
+ return true;
+}
+