From 79ce683b4e6d34fe327b00f1e427e476016cfab0 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 4 Apr 2010 12:41:19 +0000 Subject: 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 --- render/html.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'render/html.c') 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. -- cgit v1.2.3