summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
Diffstat (limited to 'render')
-rw-r--r--render/box.h6
-rw-r--r--render/html.c10
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;