diff options
Diffstat (limited to 'content/handlers/html/table.h')
-rw-r--r-- | content/handlers/html/table.h | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/content/handlers/html/table.h b/content/handlers/html/table.h index 11ab653c6..557032b06 100644 --- a/content/handlers/html/table.h +++ b/content/handlers/html/table.h @@ -29,11 +29,28 @@ struct box; -bool table_calculate_column_types( - const nscss_len_ctx *len_ctx, - struct box *table); -void table_used_border_for_cell( - const nscss_len_ctx *len_ctx, - struct box *cell); + +/** + * Determine the column width types for a table. + * + * \param unit_len_ctx Length conversion context + * \param table box of type BOX_TABLE + * \return true on success, false on memory exhaustion + * + * The table->col array is allocated and type and width are filled in for each + * column. + */ +bool table_calculate_column_types(const css_unit_ctx *unit_len_ctx, struct box *table); + + +/** + * Calculate used values of border-{trbl}-{style,color,width} for table cells. + * + * \param unit_len_ctx Length conversion context + * \param cell Table cell to consider + * + * \post \a cell's border array is populated + */ +void table_used_border_for_cell(const css_unit_ctx *unit_len_ctx, struct box *cell); #endif |