diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2004-01-05 02:10:59 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2004-01-05 02:10:59 +0000 |
commit | 62245d13ec60e3c0fc78221f0a8f754f33c2b6a1 (patch) | |
tree | 5bbe5b8a63941c2d3b7f71fc53ceedcbc1d92cd6 /riscos/htmlinstance.c | |
parent | 91e767cdfa11225dd370471892000e107bb06726 (diff) | |
download | netsurf-62245d13ec60e3c0fc78221f0a8f754f33c2b6a1.tar.gz netsurf-62245d13ec60e3c0fc78221f0a8f754f33c2b6a1.tar.bz2 |
[project @ 2004-01-05 02:10:59 by jmb]
Add ability to turn off browser features in build.
This may be useful when hunting down bugs.
svn path=/import/netsurf/; revision=480
Diffstat (limited to 'riscos/htmlinstance.c')
-rw-r--r-- | riscos/htmlinstance.c | 19 |
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, |