NetSurf
|
HTML Box tree normalise interface. More...
Go to the source code of this file.
Functions | |
bool | box_normalise_block (struct box *block, const struct box *root, struct html_content *c) |
Ensure the box tree is correctly nested by adding and removing nodes. More... | |
HTML Box tree normalise interface.
A box tree is "normalized" if the following is satisfied:
Definition in file box_normalise.h.
bool box_normalise_block | ( | struct box * | block, |
const struct box * | root, | ||
struct html_content * | c | ||
) |
Ensure the box tree is correctly nested by adding and removing nodes.
block | box of type BLOCK, INLINE_BLOCK, or TABLE_CELL |
root | root box of document |
c | content of boxes |
The tree is modified to satisfy the following:
Definition at line 1088 of file box_normalise.c.
References nscss_select_ctx::base_url, html_content::base_url, html_content::bctx, box_add_child(), BOX_BLOCK, BOX_BR, box_create(), BOX_FLEX, BOX_FLOAT_LEFT, BOX_FLOAT_RIGHT, BOX_INLINE, BOX_INLINE_BLOCK, BOX_INLINE_CONTAINER, BOX_INLINE_END, BOX_INLINE_FLEX, box_normalise_block(), box_normalise_flex(), box_normalise_inline_container(), box_normalise_table(), BOX_TABLE, BOX_TABLE_CELL, BOX_TABLE_ROW, BOX_TABLE_ROW_GROUP, BOX_TEXT, box::children, nscss_select_ctx::ctx, box::href, box::last, box::next, nscss_get_blank_style(), NSLOG, box::parent, box::prev, nscss_select_ctx::quirks, html_content::quirks, root, nscss_select_ctx::root_style, html_content::select_ctx, box::style, box::target, box::type, html_content::unit_len_ctx, nscss_select_ctx::universal, and html_content::universal.
Referenced by box_normalise_block(), box_normalise_flex(), box_normalise_inline_container(), box_normalise_table_row(), and convert_xml_to_box().