summaryrefslogtreecommitdiff
path: root/src/html/html_input_element.c
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2012-07-22 19:45:47 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2012-07-22 19:45:47 +0100
commit542b8cb8feba8f15497eecf31cac53a7f4b17add (patch)
tree2b2150f5e8222a7decb6005c6421d8bf604011b3 /src/html/html_input_element.c
parenteb303585cb38c7bbea7e7d7cafab4d0ea0884023 (diff)
downloadlibdom-542b8cb8feba8f15497eecf31cac53a7f4b17add.tar.gz
libdom-542b8cb8feba8f15497eecf31cac53a7f4b17add.tar.bz2
HTML{TextArea,Input,Button}Element: Do not ref the form, refs are for outside libdom
Diffstat (limited to 'src/html/html_input_element.c')
-rw-r--r--src/html/html_input_element.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/html/html_input_element.c b/src/html/html_input_element.c
index ee75a64..aa3e05f 100644
--- a/src/html/html_input_element.c
+++ b/src/html/html_input_element.c
@@ -83,11 +83,6 @@ void _dom_html_input_element_finalise(struct dom_html_input_element *ele)
ele->default_value = NULL;
}
- if (ele->form != NULL) {
- dom_node_unref(ele->form);
- ele->form = NULL;
- }
-
_dom_html_element_finalise(&ele->base);
}
@@ -402,17 +397,8 @@ dom_exception dom_html_input_element_get_form(
dom_exception _dom_html_input_element_set_form(
dom_html_input_element *input, dom_html_form_element *form)
{
- if (input->form == form)
- return DOM_NO_ERR;
-
- if (input->form != NULL)
- dom_node_unref(input->form);
-
input->form = form;
- if (input->form != NULL)
- dom_node_ref(input->form);
-
return DOM_NO_ERR;
}