summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2004-01-20 19:08:34 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2004-01-20 19:08:34 +0000
commit0dab93fe7652dd1f1c656356a62f01d4053bb2ff (patch)
tree3b3d7bc784d3f39f2474b231e4727288144b5902 /render
parent10b546f7f974ac8e157426ee42d7abdd52dbf14b (diff)
downloadnetsurf-0dab93fe7652dd1f1c656356a62f01d4053bb2ff.tar.gz
netsurf-0dab93fe7652dd1f1c656356a62f01d4053bb2ff.tar.bz2
[project @ 2004-01-20 19:08:34 by jmb]
Allow toggling of POST support. Add new toolbar icon numbers to riscos/gui.h svn path=/import/netsurf/; revision=490
Diffstat (limited to 'render')
-rw-r--r--render/form.h1
-rw-r--r--render/html.c30
2 files changed, 25 insertions, 6 deletions
diff --git a/render/form.h b/render/form.h
index 10e357ec7..53f933720 100644
--- a/render/form.h
+++ b/render/form.h
@@ -14,6 +14,7 @@
#define _NETSURF_RENDER_FORM_H_
#include <stdbool.h>
+#include "netsurf/utils/config.h"
struct box;
struct form_control;
diff --git a/render/html.c b/render/html.c
index c7cb76ba3..9e447e4ae 100644
--- a/render/html.c
+++ b/render/html.c
@@ -203,7 +203,10 @@ void html_convert_css_callback(content_msg msg, struct content *css,
c->active--;
c->data.html.stylesheet_content[i] = fetchcache(
error, c->url, html_convert_css_callback,
- c, (void*)i, css->width, css->height, true, 0, 0
+ c, (void*)i, css->width, css->height, true
+#ifdef WITH_POST
+ , 0, 0
+#endif
#ifdef WITH_COOKIES
, false
#endif
@@ -280,7 +283,10 @@ void html_find_stylesheets(struct content *c, xmlNode *head)
#endif
c->url,
html_convert_css_callback,
- c, 0, c->width, c->height, true, 0, 0
+ c, 0, c->width, c->height, true
+#ifdef WITH_POST
+ , 0, 0
+#endif
#ifdef WITH_COOKIES
, false
#endif
@@ -338,7 +344,10 @@ void html_find_stylesheets(struct content *c, xmlNode *head)
(i + 1) * sizeof(*c->data.html.stylesheet_content));
c->data.html.stylesheet_content[i] = fetchcache(url, c->url,
html_convert_css_callback, c, (void*)i,
- c->width, c->height, true, 0, 0
+ c->width, c->height, true
+#ifdef WITH_POST
+ , 0, 0
+#endif
#ifdef WITH_COOKIES
, false
#endif
@@ -432,7 +441,10 @@ void html_fetch_object(struct content *c, char *url, struct box *box)
c->data.html.object[i].content = fetchcache(url, c->url,
html_object_callback,
c, (void*)i, c->width, c->height,
- true, 0, 0
+ true
+#ifdef WITH_POST
+ , 0, 0
+#endif
#ifdef WITH_COOKIES
, false
#endif
@@ -526,7 +538,10 @@ void html_object_callback(content_msg msg, struct content *object,
c->data.html.object[i].url = xstrdup(error);
c->data.html.object[i].content = fetchcache(
error, c->url, html_object_callback,
- c, (void*)i, 0, 0, true, 0, 0
+ c, (void*)i, 0, 0, true
+#ifdef WITH_POST
+ , 0, 0
+#endif
#ifdef WITH_COOKIES
, false
#endif
@@ -577,7 +592,10 @@ void html_revive(struct content *c, unsigned int width, unsigned int height)
c->data.html.object[i].content = fetchcache(
c->data.html.object[i].url, c->url,
html_object_callback,
- c, (void*)i, 0, 0, true, 0, 0
+ c, (void*)i, 0, 0, true
+#ifdef WITH_POST
+ , 0, 0
+#endif
#ifdef WITH_COOKIES
, false
#endif