summaryrefslogtreecommitdiff
path: root/render/html.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/html.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/html.c')
-rw-r--r--render/html.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/render/html.c b/render/html.c
index e38a4ba99..2ead62fc3 100644
--- a/render/html.c
+++ b/render/html.c
@@ -1681,7 +1681,7 @@ void html_stop(struct content *c)
if (content_get_status(object) == CONTENT_STATUS_DONE)
; /* already loaded: do nothing */
else if (content_get_status(object) == CONTENT_STATUS_READY)
- content_stop(object, html_object_callback, NULL);
+ hlcache_handle_abort(object);
else {
hlcache_handle_release(object);
c->data.html.object[i].content = NULL;
@@ -1847,6 +1847,11 @@ void html_destroy_iframe(struct content_html_iframe *iframe) {
}
}
+bool html_clone(const struct content *old, struct content *new_content)
+{
+ /** \todo Clone HTML specifics */
+ return true;
+}
/**
* Set the content status.