diff options
author | Vincent Sanders <vince@kyllikki.org> | 2020-04-28 23:30:20 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2020-04-28 23:30:20 +0100 |
commit | c0ef8ce645d6077831877b5a8499b89c18df7bf9 (patch) | |
tree | 28cb9813cdfaac57218ebf24264c124af92e6584 /content/handlers/html/box_construct.c | |
parent | f6883d6761975c6512455f0c854b683240c7cd48 (diff) | |
download | netsurf-c0ef8ce645d6077831877b5a8499b89c18df7bf9.tar.gz netsurf-c0ef8ce645d6077831877b5a8499b89c18df7bf9.tar.bz2 |
clean up html box, no functionality change just cosmetic
split up the html box headers
tidy up the documentation comments
avoid forward declarations in normalisation implementation
Diffstat (limited to 'content/handlers/html/box_construct.c')
-rw-r--r-- | content/handlers/html/box_construct.c | 62 |
1 files changed, 6 insertions, 56 deletions
diff --git a/content/handlers/html/box_construct.c b/content/handlers/html/box_construct.c index 16154cbd4..039da7478 100644 --- a/content/handlers/html/box_construct.c +++ b/content/handlers/html/box_construct.c @@ -51,6 +51,8 @@ #include "html/html.h" #include "html/box.h" +#include "html/box_construct.h" +#include "html/box_normalise.h" #include "html/box_textarea.h" #include "html/form_internal.h" #include "html/html_internal.h" @@ -3139,7 +3141,7 @@ static void convert_xml_to_box(struct box_construct_ctx *ctx) } -/* Exported function, documented in box.h */ +/* exported function documented in html/box_construct.h */ nserror dom_to_box(dom_node *n, html_content *c, @@ -3175,7 +3177,7 @@ dom_to_box(dom_node *n, } -/* Exported function, see box.h */ +/* exported function documented in html/box_construct.h */ nserror cancel_dom_to_box(void *box_conversion_context) { struct box_construct_ctx *ctx = box_conversion_context; @@ -3193,7 +3195,7 @@ nserror cancel_dom_to_box(void *box_conversion_context) } -/* Exported function, see box.h */ +/* exported function documented in html/box_construct.h */ struct box *box_for_node(dom_node *n) { struct box *box = NULL; @@ -3208,59 +3210,7 @@ struct box *box_for_node(dom_node *n) } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -/* exported function documented in html/box.h */ +/* exported function documented in html/box_construct.h */ bool box_extract_link(const html_content *content, const dom_string *dsrel, |