diff options
author | James Bursa <james@netsurf-browser.org> | 2004-08-11 19:02:32 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2004-08-11 19:02:32 +0000 |
commit | bc727dda1c4078a8832e594acf0d02dbc139d2b6 (patch) | |
tree | 83b4565bc874022e2b151c38c16b679aa8e42b4c /render | |
parent | dba4904ddb5e82f0e941069da90d662d07d9c87f (diff) | |
download | netsurf-bc727dda1c4078a8832e594acf0d02dbc139d2b6.tar.gz netsurf-bc727dda1c4078a8832e594acf0d02dbc139d2b6.tar.bz2 |
[project @ 2004-08-11 19:02:32 by bursa]
Start work on removing instances and making content types non-shareable. Clean up some #includes.
svn path=/import/netsurf/; revision=1211
Diffstat (limited to 'render')
-rw-r--r-- | render/box.h | 6 | ||||
-rw-r--r-- | render/html.c | 10 |
2 files changed, 12 insertions, 4 deletions
diff --git a/render/box.h b/render/box.h index c49c123ed..f92a339ad 100644 --- a/render/box.h +++ b/render/box.h @@ -76,15 +76,13 @@ #include <limits.h> #include <stdbool.h> #include "libxml/HTMLparser.h" -#include "netsurf/utils/config.h" -#include "netsurf/content/content_type.h" -#include "netsurf/css/css.h" -#include "netsurf/render/font.h" #include "netsurf/utils/pool.h" struct box; struct column; +struct css_style; +struct font_data; /** Type of a struct box. */ diff --git a/render/html.c b/render/html.c index b19e99c30..09cdd570c 100644 --- a/render/html.c +++ b/render/html.c @@ -24,6 +24,8 @@ #include "netsurf/desktop/gui.h" #endif #include "netsurf/desktop/options.h" +#include "netsurf/render/box.h" +#include "netsurf/render/font.h" #include "netsurf/render/html.h" #include "netsurf/render/layout.h" #include "netsurf/utils/log.h" @@ -586,6 +588,10 @@ void html_convert_css_callback(content_msg msg, struct content *css, } break; + case CONTENT_MSG_NEWPTR: + c->data.html.stylesheet_content[i] = css; + break; + #ifdef WITH_AUTH case CONTENT_MSG_AUTH: c->data.html.stylesheet_content[i] = 0; @@ -743,6 +749,10 @@ void html_object_callback(content_msg msg, struct content *object, content_broadcast(c, CONTENT_MSG_REDRAW, data); break; + case CONTENT_MSG_NEWPTR: + c->data.html.object[i].content = object; + break; + #ifdef WITH_AUTH case CONTENT_MSG_AUTH: c->data.html.object[i].content = 0; |