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/textplain.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'render/textplain.h') diff --git a/render/textplain.h b/render/textplain.h index ec4882800..61a1c0c9a 100644 --- a/render/textplain.h +++ b/render/textplain.h @@ -37,7 +37,7 @@ struct textplain_line { }; struct content_textplain_data { - const char *encoding; + char *encoding; iconv_t iconv_cd; size_t converted; char *utf8_data; @@ -58,6 +58,7 @@ bool textplain_redraw(struct content *c, int x, int y, int width, int height, int clip_x0, int clip_y0, int clip_x1, int clip_y1, float scale, colour background_colour); +bool textplain_clone(const struct content *old, struct content *new_content); /* access to lines for text selection and searching */ unsigned long textplain_line_count(struct hlcache_handle *h); -- cgit v1.2.3