summaryrefslogtreecommitdiff
path: root/src/html/html_button_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_button_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_button_element.c')
-rw-r--r--src/html/html_button_element.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/html/html_button_element.c b/src/html/html_button_element.c
index 4a73fcf..68cb1a5 100644
--- a/src/html/html_button_element.c
+++ b/src/html/html_button_element.c
@@ -74,11 +74,6 @@ dom_exception _dom_html_button_element_initialise(struct dom_html_document *doc,
*/
void _dom_html_button_element_finalise(struct dom_html_button_element *ele)
{
- if (ele->form != NULL) {
- dom_node_unref(ele->form);
- ele->form = NULL;
- }
-
_dom_html_element_finalise(&ele->base);
}
@@ -228,17 +223,8 @@ dom_exception dom_html_button_element_get_form(
dom_exception _dom_html_button_element_set_form(
dom_html_button_element *button, dom_html_form_element *form)
{
- if (button->form == form)
- return DOM_NO_ERR;
-
- if (button->form != NULL)
- dom_node_unref(button->form);
-
button->form = form;
- if (button->form != NULL)
- dom_node_ref(button->form);
-
return DOM_NO_ERR;
}