/* * This file is part of NetSurf, http://netsurf.sourceforge.net/ * Licensed under the GNU General Public License, * http://www.opensource.org/licenses/gpl-license * 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/utils/pool.h" struct box; struct browser_window; struct content; struct object_params; struct imagemap; struct box_position { struct box *box; int actual_box_x; int actual_box_y; int plot_index; int pixel_offset; int char_offset; }; /** Data specific to CONTENT_HTML. */ struct content_html_data { htmlParserCtxt *parser; /**< HTML parser context. */ xmlCharEncoding encoding; /**< Encoding of source. */ bool getenc; /**< Need to get the encoding from the document, as server is broken. */ char *base_url; /**< Base URL (may be a copy of content->url). */ 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