summaryrefslogtreecommitdiff
path: root/src/html/html_document.h
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_document.h
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_document.h')
-rw-r--r--src/html/html_document.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/html/html_document.h b/src/html/html_document.h
index ad3ff6d..28041d6 100644
--- a/src/html/html_document.h
+++ b/src/html/html_document.h
@@ -25,13 +25,23 @@ struct dom_html_document {
dom_string *cookie; /**< HTML document cookie */
};
+/* Create a HTMLDocument */
+dom_exception _dom_html_document_create(
+ dom_events_default_action_fetcher daf,
+ dom_html_document **doc);
/* Initialise a HTMLDocument */
dom_exception _dom_html_document_initialise(dom_html_document *doc,
- dom_events_default_action_fetcher daf, dom_ui_handler *ui);
+ dom_events_default_action_fetcher daf);
/* Finalise a HTMLDocument */
void _dom_html_document_finalise(dom_html_document *doc);
-/* Destroy a HTMLDocument */
-void _dom_html_document_destroy(dom_html_document *doc);
+
+void _dom_html_document_destroy(dom_node_internal *node);
+dom_exception _dom_html_document_copy(dom_node_internal *old,
+ dom_node_internal **copy);
+
+#define DOM_HTML_DOCUMENT_PROTECT_VTABLE \
+ _dom_html_document_destroy, \
+ _dom_html_document_copy
#endif