summaryrefslogtreecommitdiff
path: root/src/html/html_html_element.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2012-02-05 14:33:17 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2012-02-05 14:33:17 +0000
commit7b193ec6c254488870c0360a2a5bf004d1d848b4 (patch)
tree8b666110763d6da3297d19a020b9eb5279caf051 /src/html/html_html_element.c
parent941e2f52a2b3d4bf0febeff73301c89aab625ae0 (diff)
downloadlibdom-7b193ec6c254488870c0360a2a5bf004d1d848b4.tar.gz
libdom-7b193ec6c254488870c0360a2a5bf004d1d848b4.tar.bz2
A bunch of panel beating:
* HTMLElement and HTMLDocument now have vtables * All HTML nodes require an HTMLDocument to create * Miscellaneous other cleanups svn path=/trunk/libdom/; revision=13424
Diffstat (limited to 'src/html/html_html_element.c')
-rw-r--r--src/html/html_html_element.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/html/html_html_element.c b/src/html/html_html_element.c
index 9083394..cb0682c 100644
--- a/src/html/html_html_element.c
+++ b/src/html/html_html_element.c
@@ -10,7 +10,6 @@
#include "html/html_html_element.h"
#include "core/node.h"
-#include "core/document.h"
#include "utils/utils.h"
static struct dom_element_protected_vtable _protect_vtable = {
@@ -27,7 +26,7 @@ static struct dom_element_protected_vtable _protect_vtable = {
* \param ele The returned element object
* \return DOM_NO_ERR on success, appropriate dom_exception on failure.
*/
-dom_exception _dom_html_html_element_create(struct dom_document *doc,
+dom_exception _dom_html_html_element_create(struct dom_html_document *doc,
struct dom_html_html_element **ele)
{
*ele = malloc(sizeof(dom_html_html_element));
@@ -49,7 +48,7 @@ dom_exception _dom_html_html_element_create(struct dom_document *doc,
* \param ele The dom_html_html_element object
* \return DOM_NO_ERR on success, appropriate dom_exception on failure.
*/
-dom_exception _dom_html_html_element_initialise(struct dom_document *doc,
+dom_exception _dom_html_html_element_initialise(struct dom_html_document *doc,
struct dom_html_html_element *ele)
{
dom_string *name = NULL;