summaryrefslogtreecommitdiff
path: root/riscos/htmlinstance.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2003-11-12 22:22:45 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2003-11-12 22:22:45 +0000
commit01d735dab846c9df1ec40dcc2b0fb7f3d10b84b2 (patch)
tree84799f646ff0b3756bbcc17a9cb1d5c2dc5939b9 /riscos/htmlinstance.c
parentbf202492f94f0db33e35ead79b897e6cc9ad8817 (diff)
downloadnetsurf-01d735dab846c9df1ec40dcc2b0fb7f3d10b84b2.tar.gz
netsurf-01d735dab846c9df1ec40dcc2b0fb7f3d10b84b2.tar.bz2
[project @ 2003-11-12 22:22:45 by jmb]
Begin frames support. Just data structure handling for now. None of this code is called atm. svn path=/import/netsurf/; revision=416
Diffstat (limited to 'riscos/htmlinstance.c')
-rw-r--r--riscos/htmlinstance.c64
1 files changed, 64 insertions, 0 deletions
diff --git a/riscos/htmlinstance.c b/riscos/htmlinstance.c
new file mode 100644
index 000000000..78f6bdd57
--- /dev/null
+++ b/riscos/htmlinstance.c
@@ -0,0 +1,64 @@
+/*
+ * This file is part of NetSurf, http://netsurf.sourceforge.net/
+ * Licensed under the GNU General Public License,
+ * http://www.opensource.org/licenses/gpl-license
+ * Copyright 2003 James Bursa <bursa@users.sourceforge.net>
+ */
+
+#include "netsurf/content/content.h"
+#include "netsurf/desktop/browser.h"
+#include "netsurf/render/box.h"
+#include "netsurf/render/html.h"
+#include "netsurf/riscos/frames.h"
+#include "netsurf/utils/log.h"
+
+void html_add_instance(struct content *c, struct browser_window *bw,
+ struct content *page, struct box *box,
+ struct object_params *params, void **state)
+{
+ unsigned int i;
+ for (i = 0; i != c->data.html.object_count; i++) {
+ if (c->data.html.object[i].content == 0)
+ continue;
+ if (c->data.html.object[i].content->type == CONTENT_HTML)
+ LOG(("html object"));
+ content_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);
+ }
+}
+
+
+void html_reshape_instance(struct content *c, struct browser_window *bw,
+ struct content *page, struct box *box,
+ struct object_params *params, void **state)
+{
+ unsigned int i;
+ for (i = 0; i != c->data.html.object_count; i++) {
+ if (c->data.html.object[i].content == 0)
+ continue;
+ content_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);
+ }
+}
+
+void html_remove_instance(struct content *c, struct browser_window *bw,
+ struct content *page, struct box *box,
+ struct object_params *params, void **state)
+{
+ unsigned int i;
+ for (i = 0; i != c->data.html.object_count; i++) {
+ if (c->data.html.object[i].content == 0)
+ continue;
+ content_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);
+ }
+} \ No newline at end of file