summaryrefslogtreecommitdiff
path: root/content/handlers/html/box.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2020-04-26 11:19:26 +0100
committerVincent Sanders <vince@kyllikki.org>2020-04-26 11:21:02 +0100
commitb577de7c5bbba6c2f9a0b4ede3f814ea3023ded6 (patch)
tree919c9f77b95663ebf327bcaca574403f70b6d1a0 /content/handlers/html/box.h
parent309fcd6d428b2f552fd27bf93154a09d5836eed4 (diff)
downloadnetsurf-b577de7c5bbba6c2f9a0b4ede3f814ea3023ded6.tar.gz
netsurf-b577de7c5bbba6c2f9a0b4ede3f814ea3023ded6.tar.bz2
remove forward declarations
reorder module to remove need for forward function declarations. remove unecessary and confusing parameter macros
Diffstat (limited to 'content/handlers/html/box.h')
-rw-r--r--content/handlers/html/box.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/content/handlers/html/box.h b/content/handlers/html/box.h
index 8ab2875a0..efad90fe4 100644
--- a/content/handlers/html/box.h
+++ b/content/handlers/html/box.h
@@ -369,8 +369,20 @@ nserror box_handle_scrollbars(struct content *c, struct box *box,
bool box_vscrollbar_present(const struct box *box);
bool box_hscrollbar_present(const struct box *box);
+/**
+ * Construct a box tree from an xml tree and stylesheets.
+ *
+ * \param n xml tree
+ * \param c content of type CONTENT_HTML to construct box tree in
+ * \param cb callback to report conversion completion
+ * \return netsurf error code indicating status of call
+ */
nserror dom_to_box(struct dom_node *n, struct html_content *c,
box_construct_complete_cb cb, void **box_conversion_context);
+
+/**
+ * aborts any ongoing box construction
+ */
nserror cancel_dom_to_box(void *box_conversion_context);
bool box_normalise_block(