72#ifndef NETSURF_HTML_BOX_CONSTRUCT_H
73#define NETSURF_HTML_BOX_CONSTRUCT_H
void(* box_construct_complete_cb)(struct html_content *c, bool success)
nserror dom_to_box(struct dom_node *n, struct html_content *c, box_construct_complete_cb cb, void **box_conversion_context)
Construct a box tree from a dom and html content.
bool box_extract_link(const struct html_content *content, const struct dom_string *dsrel, struct nsurl *base, struct nsurl **result)
Extract a URL from a relative link, handling junk like whitespace and attempting to read a real URL f...
struct box * box_for_node(struct dom_node *node)
Retrieve the box for a dom node, if there is one.
nserror cancel_dom_to_box(void *box_conversion_context)
aborts any ongoing box construction
nserror
Enumeration of error codes.
struct nsurl nsurl
NetSurf URL object.
struct dom_node * node
DOM node that generated this box or NULL.
Content which corresponds to a single URL.
Data specific to CONTENT_HTML.