From 9741deb831f7e5ca83c2ffc439acfea75cb08194 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Tue, 5 Jul 2005 22:43:38 +0000 Subject: [project @ 2005-07-05 22:43:38 by bursa] Add locked attribute to content structure and use it to ignore content_redraw() during _convert() or _reformat(). svn path=/import/netsurf/; revision=1787 --- content/content.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'content/content.h') diff --git a/content/content.h b/content/content.h index 0c6833e67..4bda90dfd 100644 --- a/content/content.h +++ b/content/content.h @@ -92,6 +92,10 @@ * if an error occurs, must broadcast CONTENT_MSG_ERROR and return false. * Optionally use warn_user() for serious errors. The _destroy function will * be called soon after. + * + * Each content structure is allocated using talloc, and all data related to a + * content should be allocated as a child block of the content structure using + * talloc. This will ensure that all memory used by a page is freed. */ #ifndef _NETSURF_DESKTOP_CONTENT_H_ @@ -235,6 +239,9 @@ struct content { conversions currently in progress. */ struct content_user *user_list; /**< List of users. */ char status_message[80]; /**< Text for status bar. */ + /** Content is being processed: data structures may be inconsistent + * and content must not be redrawn or modified. */ + bool locked; struct fetch *fetch; /**< Associated fetch, or 0. */ char *source_data; /**< Source data, as received. */ -- cgit v1.2.3