diff options
Diffstat (limited to 'content/handlers/html/box.h')
-rw-r--r-- | content/handlers/html/box.h | 12 |
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( |