diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-07-22 19:45:47 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-07-22 19:45:47 +0100 |
commit | be470386ad4af10d096bda3c04409a7ba5c4fc5d (patch) | |
tree | 2b2150f5e8222a7decb6005c6421d8bf604011b3 /src/html/html_button_element.c | |
parent | daba4c10af9289034b7c506db31a31ded61b3531 (diff) | |
download | libdom-be470386ad4af10d096bda3c04409a7ba5c4fc5d.tar.gz libdom-be470386ad4af10d096bda3c04409a7ba5c4fc5d.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.c | 14 |
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; } |