From a7f3829d558f768db5d2f7c783ccc08a9694f409 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Fri, 20 Feb 2004 00:43:17 +0000 Subject: [project @ 2004-02-20 00:43:17 by bursa] Fix html_destroy() crash, add documentation. svn path=/import/netsurf/; revision=562 --- render/html.h | 46 ++++++++++++++++++++++++++++++++++------------ 1 file changed, 34 insertions(+), 12 deletions(-) (limited to 'render/html.h') diff --git a/render/html.h b/render/html.h index d69a1a0fe..52f175cb0 100644 --- a/render/html.h +++ b/render/html.h @@ -5,12 +5,18 @@ * Copyright 2004 James Bursa */ +/** \file + * Content for text/html (interface). + * + * These functions should in general be called via the content interface. + */ + #ifndef _NETSURF_RENDER_HTML_H_ #define _NETSURF_RENDER_HTML_H_ +#include "libxml/HTMLparser.h" #include "netsurf/content/content_type.h" #include "netsurf/css/css.h" -#include "netsurf/render/box.h" #include "netsurf/utils/pool.h" struct box; @@ -27,36 +33,52 @@ struct box_position { int char_offset; }; +/** Data specific to CONTENT_HTML. */ struct content_html_data { - htmlParserCtxt *parser; - char *source; - int length; + htmlParserCtxt *parser; /**< HTML parser context. */ + + char *source; /**< Source data. */ + int length; /**< Length of source. */ + xmlCharEncoding encoding; /**< Encoding of source. */ + char *base_url; /**< Base URL (may be a copy of content->url). */ - struct box *layout; - colour background_colour; + + struct box *layout; /**< Box tree, or 0. */ + colour background_colour; /**< Document background colour. */ + + /** Number of entries in stylesheet_content. */ unsigned int stylesheet_count; + /** Stylesheets. Each may be 0. Stylesheet 0 is the base style sheet, + * stylesheet 1 is any