summaryrefslogtreecommitdiff
path: root/render/html.h
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2003-09-07 21:08:13 +0000
committerJames Bursa <james@netsurf-browser.org>2003-09-07 21:08:13 +0000
commit9fa8f4037af0f35e690fda48c16f9896c058a029 (patch)
tree9eba791584194f5a6a22057b9c94da255febd165 /render/html.h
parentbaf579157638468bf9325bbf543d75cc30d119b8 (diff)
downloadnetsurf-9fa8f4037af0f35e690fda48c16f9896c058a029.tar.gz
netsurf-9fa8f4037af0f35e690fda48c16f9896c058a029.tar.bz2
[project @ 2003-09-07 21:08:13 by bursa]
Document cache and content, split struct content up. svn path=/import/netsurf/; revision=270
Diffstat (limited to 'render/html.h')
-rw-r--r--render/html.h42
1 files changed, 41 insertions, 1 deletions
diff --git a/render/html.h b/render/html.h
index 18edc3ddf..cea2a7de8 100644
--- a/render/html.h
+++ b/render/html.h
@@ -8,7 +8,47 @@
#ifndef _NETSURF_RENDER_HTML_H_
#define _NETSURF_RENDER_HTML_H_
-#include "netsurf/content/content.h"
+#include "netsurf/css/css.h"
+#include "netsurf/render/box.h"
+
+struct box;
+struct browser_window;
+struct content;
+struct object_params;
+
+struct box_position {
+ struct box *box;
+ int actual_box_x;
+ int actual_box_y;
+ int plot_index;
+ int pixel_offset;
+ int char_offset;
+};
+
+struct content_html_data {
+ htmlParserCtxt *parser;
+ char *source;
+ int length;
+ struct box *layout;
+ colour background_colour;
+ unsigned int stylesheet_count;
+ struct content **stylesheet_content;
+ struct css_style *style;
+ struct {
+ struct box_position start;
+ struct box_position end;
+ enum { alter_UNKNOWN, alter_START, alter_END } altering;
+ int selected; /* 0 = unselected, 1 = selected */
+ } text_selection;
+ struct font_set *fonts;
+ struct page_elements elements;
+ unsigned int object_count; /* images etc. */
+ struct {
+ char *url;
+ struct content *content;
+ struct box *box;
+ } *object;
+};
void html_create(struct content *c);
void html_process_data(struct content *c, char *data, unsigned long size);