summaryrefslogtreecommitdiff
path: root/render/form.h
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-02-17 14:38:53 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2014-02-17 14:38:53 +0000
commit71cb70065e6819c26f101ff11e34c10383487b30 (patch)
tree6a4e2d6adb6bfbb029a93fa4c992613228a49e24 /render/form.h
parentb99357616cebe750e523f123701f284d7ac0037f (diff)
downloadnetsurf-71cb70065e6819c26f101ff11e34c10383487b30.tar.gz
netsurf-71cb70065e6819c26f101ff11e34c10383487b30.tar.bz2
Gadgets can exisit outside forms, so now they store their own ref to the containing html content.
Diffstat (limited to 'render/form.h')
-rw-r--r--render/form.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/render/form.h b/render/form.h
index 21829b9c5..f072b801e 100644
--- a/render/form.h
+++ b/render/form.h
@@ -46,7 +46,6 @@ typedef enum {
/** HTML form. */
struct form {
- struct html_content *html; /**< HTML content containing form */
void *node; /**< Corresponding DOM node */
char *action; /**< Absolute URL to submit to. */
@@ -78,13 +77,13 @@ typedef enum {
/** Data for textarea */
struct form_textarea_data {
- struct html_content *html;
struct form_control *gadget;
};
/** Form control. */
struct form_control {
void *node; /**< Corresponding DOM node */
+ struct html_content *html; /**< HTML content containing control */
form_control_type type; /**< Type of control */
@@ -157,7 +156,6 @@ typedef void(*select_menu_redraw_callback)(void *client_data,
struct form *form_new(void *node, const char *action, const char *target,
form_method method, const char *charset,
const char *doc_charset);
-void form_set_html_content(struct form *f, struct html_content *html);
void form_free(struct form *form);
struct form_control *form_new_control(void *node, form_control_type type);
void form_add_control(struct form *form, struct form_control *control);