From 02096736454faa7c850ab34daffd3ba206c71f52 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sat, 7 Jul 2012 17:38:52 +0100 Subject: HTML{Html,Head}Element: Unvirtualise accessors --- src/html/html_head_element.c | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) (limited to 'src/html/html_head_element.c') diff --git a/src/html/html_head_element.c b/src/html/html_head_element.c index 6c5b99b..00d4476 100644 --- a/src/html/html_head_element.c +++ b/src/html/html_head_element.c @@ -20,22 +20,6 @@ static struct dom_element_protected_vtable _protect_vtable = { DOM_HTML_HEAD_ELEMENT_PROTECT_VTABLE }; -static struct dom_html_head_element_vtable _vtable = { - { - { - { - { - DOM_NODE_EVENT_TARGET_VTABLE - }, - DOM_NODE_VTABLE_ELEMENT, - }, - DOM_ELEMENT_VTABLE - }, - DOM_HTML_ELEMENT_VTABLE - }, - DOM_HTML_HEAD_ELEMENT_VTABLE -}; - /** * Create a dom_html_head_element object * @@ -55,7 +39,7 @@ dom_exception _dom_html_head_element_create(struct dom_html_document *doc, /* Set up vtables */ node = (struct dom_node_internal *) *ele; - node->base.vtable = &_vtable; + node->base.vtable = &_dom_html_element_vtable; node->vtable = &_protect_vtable; return _dom_html_head_element_initialise(doc, namespace, prefix, *ele); @@ -132,7 +116,7 @@ dom_exception _dom_html_head_element_copy(dom_node_internal *old, /*-----------------------------------------------------------------------*/ /* API functions */ -dom_exception _dom_html_head_element_get_profile(dom_html_head_element *element, +dom_exception dom_html_head_element_get_profile(dom_html_head_element *element, dom_string **profile) { dom_exception ret; @@ -147,7 +131,7 @@ dom_exception _dom_html_head_element_get_profile(dom_html_head_element *element, return ret; } -dom_exception _dom_html_head_element_set_profile(dom_html_head_element *element, +dom_exception dom_html_head_element_set_profile(dom_html_head_element *element, dom_string *profile) { dom_exception ret; -- cgit v1.2.3