summaryrefslogtreecommitdiff
path: root/riscos/htmlinstance.c
diff options
context:
space:
mode:
Diffstat (limited to 'riscos/htmlinstance.c')
-rw-r--r--riscos/htmlinstance.c19
1 files changed, 13 insertions, 6 deletions
diff --git a/riscos/htmlinstance.c b/riscos/htmlinstance.c
index f305beb94..68c03fdeb 100644
--- a/riscos/htmlinstance.c
+++ b/riscos/htmlinstance.c
@@ -5,6 +5,7 @@
* Copyright 2003 James Bursa <bursa@users.sourceforge.net>
*/
+#include "netsurf/utils/config.h"
#include "netsurf/content/content.h"
#include "netsurf/desktop/browser.h"
#include "netsurf/render/box.h"
@@ -20,13 +21,15 @@ void html_add_instance(struct content *c, struct browser_window *bw,
for (i = 0; i != c->data.html.object_count; i++) {
if (c->data.html.object[i].content == 0)
continue;
+#ifdef WITH_FRAMES
if (c->data.html.object[i].content->type == CONTENT_HTML)
- /*frame_add_instance(c->data.html.object[i].content,
+ frame_add_instance(c->data.html.object[i].content,
bw, c,
c->data.html.object[i].box,
c->data.html.object[i].box->object_params,
- &c->data.html.object[i].box->object_state)*/;
+ &c->data.html.object[i].box->object_state);
else
+#endif
content_add_instance(c->data.html.object[i].content,
bw, c,
c->data.html.object[i].box,
@@ -44,13 +47,15 @@ void html_reshape_instance(struct content *c, struct browser_window *bw,
for (i = 0; i != c->data.html.object_count; i++) {
if (c->data.html.object[i].content == 0)
continue;
+#ifdef WITH_FRAMES
if (c->data.html.object[i].content->type == CONTENT_HTML)
- /*frame_reshape_instance(c->data.html.object[i].content,
+ frame_reshape_instance(c->data.html.object[i].content,
bw, c,
c->data.html.object[i].box,
c->data.html.object[i].box->object_params,
- &c->data.html.object[i].box->object_state)*/;
+ &c->data.html.object[i].box->object_state);
else
+#endif
content_reshape_instance(c->data.html.object[i].content,
bw, c,
c->data.html.object[i].box,
@@ -67,13 +72,15 @@ void html_remove_instance(struct content *c, struct browser_window *bw,
for (i = 0; i != c->data.html.object_count; i++) {
if (c->data.html.object[i].content == 0)
continue;
+#ifdef WITH_FRAMES
if (c->data.html.object[i].content->type == CONTENT_HTML)
- /*frame_remove_instance(c->data.html.object[i].content,
+ frame_remove_instance(c->data.html.object[i].content,
bw, c,
c->data.html.object[i].box,
c->data.html.object[i].box->object_params,
- &c->data.html.object[i].box->object_state)*/;
+ &c->data.html.object[i].box->object_state);
else
+#endif
content_remove_instance(c->data.html.object[i].content,
bw, c,
c->data.html.object[i].box,