diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2010-04-04 12:41:19 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2010-04-04 12:41:19 +0000 |
commit | 79ce683b4e6d34fe327b00f1e427e476016cfab0 (patch) | |
tree | 2ed3ba800e8f570000f97588ce668eb47168565a /image/ico.c | |
parent | 3daffe3d6b07be7bbeedbcb2586f11edd872cbd6 (diff) | |
download | netsurf-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 'image/ico.c')
-rw-r--r-- | image/ico.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/image/ico.c b/image/ico.c index 3335a6a58..190da86d2 100644 --- a/image/ico.c +++ b/image/ico.c @@ -169,4 +169,19 @@ void nsico_destroy(struct content *c) free(c->data.ico.ico); } +bool nsico_clone(const struct content *old, struct content *new_content) +{ + /* Simply replay creation and conversion */ + if (nsico_create(new_content, NULL) == false) + return false; + + if (old->status == CONTENT_STATUS_READY || + old->status == CONTENT_STATUS_DONE) { + if (nsico_convert(new_content) == false) + return false; + } + + return true; +} + #endif |