summaryrefslogtreecommitdiff
path: root/content/handlers/html/table.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2020-05-03 19:02:47 +0100
committerVincent Sanders <vince@kyllikki.org>2020-05-03 19:02:47 +0100
commit2a0f5525243f992518897730bf2e8618adbbad80 (patch)
tree7854b69f6e57331f98b22b68b8d32d688694a1eb /content/handlers/html/table.h
parenta40727cd295f99e0bca5ba3bec792e44b830c986 (diff)
downloadnetsurf-2a0f5525243f992518897730bf2e8618adbbad80.tar.gz
netsurf-2a0f5525243f992518897730bf2e8618adbbad80.tar.bz2
remove forward delcarations and clean up formatting in html table layout processing
Diffstat (limited to 'content/handlers/html/table.h')
-rw-r--r--content/handlers/html/table.h29
1 files changed, 23 insertions, 6 deletions
diff --git a/content/handlers/html/table.h b/content/handlers/html/table.h
index 11ab653c6..ac4af25ad 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 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 nscss_len_ctx *len_ctx, struct box *table);
+
+
+/**
+ * Calculate used values of border-{trbl}-{style,color,width} for table cells.
+ *
+ * \param 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 nscss_len_ctx *len_ctx, struct box *cell);
#endif