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 --- image/nssprite.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'image/nssprite.c') diff --git a/image/nssprite.c b/image/nssprite.c index 06e5696a0..6e2778960 100644 --- a/image/nssprite.c +++ b/image/nssprite.c @@ -144,4 +144,17 @@ bool nssprite_redraw(struct content *c, int x, int y, c->bitmap, background_colour, BITMAPF_NONE); } + +bool nssprite_clone(const struct content *old, struct content *new_content) +{ + /* Simply replay convert */ + if (old->status == CONTENT_STATUS_READY || + old->status == CONTENT_STATUS_DONE) { + if (nssprite_convert(new_content) == false) + return false; + } + + return true; +} + #endif -- cgit v1.2.3