From 74395ac888af70d12c3cebf0985c4fc185411c73 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Thu, 29 Sep 2011 19:15:54 +0000 Subject: Restartable box tree constructor. Yield between elements. svn path=/trunk/netsurf/; revision=12912 --- render/parser_binding.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'render/parser_binding.h') diff --git a/render/parser_binding.h b/render/parser_binding.h index 1641058bd..afab250eb 100644 --- a/render/parser_binding.h +++ b/render/parser_binding.h @@ -23,9 +23,17 @@ #include +struct box; struct form; struct form_control; +/** + * Private data attached to each DOM node + */ +typedef struct binding_private { + struct box *box; /**< Root box if ELEMENT node, or NULL */ +} binding_private; + typedef enum binding_error { BINDING_OK, BINDING_NOMEM, @@ -57,5 +65,7 @@ xmlDocPtr binding_get_document(void *ctx, binding_quirks_mode *quirks); struct form *binding_get_forms(void *ctx); struct form_control *binding_get_control_for_node(void *ctx, xmlNodePtr node); +void binding_destroy_document(xmlDocPtr doc); + #endif -- cgit v1.2.3