From bc727dda1c4078a8832e594acf0d02dbc139d2b6 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Wed, 11 Aug 2004 19:02:32 +0000 Subject: [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 --- render/box.h | 6 ++---- render/html.c | 10 ++++++++++ 2 files changed, 12 insertions(+), 4 deletions(-) (limited to 'render') 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 #include #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; -- cgit v1.2.3