NetSurf
|
Interface to HTML table processing and layout. More...
#include <stdbool.h>
Go to the source code of this file.
Functions | |
bool | table_calculate_column_types (const css_unit_ctx *unit_len_ctx, struct box *table) |
Determine the column width types for a table. More... | |
void | table_used_border_for_cell (const css_unit_ctx *unit_len_ctx, struct box *cell) |
Calculate used values of border-{trbl}-{style,color,width} for table cells. More... | |
Interface to HTML table processing and layout.
Definition in file table.h.
bool table_calculate_column_types | ( | const css_unit_ctx * | unit_len_ctx, |
struct box * | table | ||
) |
Determine the column width types for a table.
unit_len_ctx | Length conversion context |
table | box of type BOX_TABLE |
The table->col array is allocated and type and width are filled in for each column.
Definition at line 813 of file table.c.
References BOX_TABLE_CELL, box::children, box::col, box::columns, box::next, NSLOG, column::positioned, box::start_column, box::style, talloc_array, column::type, box::type, type, column::width, and width.
Referenced by layout_minmax_table().
void table_used_border_for_cell | ( | const css_unit_ctx * | unit_len_ctx, |
struct box * | cell | ||
) |
Calculate used values of border-{trbl}-{style,color,width} for table cells.
unit_len_ctx | Length conversion context |
cell | Table cell to consider |
Definition at line 988 of file table.c.
References box::border, BOTTOM, BOX_TABLE_CELL, box_border::c, LEFT, RIGHT, box_border::style, box::style, table_used_bottom_border_for_cell(), table_used_left_border_for_cell(), table_used_right_border_for_cell(), table_used_top_border_for_cell(), TOP, box::type, box_border::width, and width.
Referenced by layout_table().