diff options
author | James Bursa <james@netsurf-browser.org> | 2005-07-05 22:43:38 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2005-07-05 22:43:38 +0000 |
commit | 9741deb831f7e5ca83c2ffc439acfea75cb08194 (patch) | |
tree | b6f334906aae3ea0374bc17a7d4ab9b825249a97 /content/content.h | |
parent | 07f79c3800ccffbc8b70fc2e1769d1c3b8632ee0 (diff) | |
download | netsurf-9741deb831f7e5ca83c2ffc439acfea75cb08194.tar.gz netsurf-9741deb831f7e5ca83c2ffc439acfea75cb08194.tar.bz2 |
[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
Diffstat (limited to 'content/content.h')
-rw-r--r-- | content/content.h | 7 |
1 files changed, 7 insertions, 0 deletions
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. */ |