From 3a12ed0facbdbc79b358d48d78f158a735ee6158 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 15 Apr 2009 13:22:28 +0000 Subject: Update some comments. svn path=/trunk/netsurf/; revision=7092 --- render/layout.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'render') diff --git a/render/layout.c b/render/layout.c index f87abe3ed..6383d8057 100644 --- a/render/layout.c +++ b/render/layout.c @@ -900,6 +900,9 @@ bool layout_apply_minmax_height(struct box *box, struct box *container) /** * Manipulate a block's [RB]padding/height/width to accommodate scrollbars + * + * \param box Box to apply scrollbar space too. Must be BOX_BLOCK. + * \param which Which scrollbar to make space for. Must be RIGHT or BOTTOM. */ void layout_block_add_scrollbar(struct box *box, int which) @@ -1009,7 +1012,13 @@ int layout_solve_width(int available_width, int width, int lm, int rm, /** * Compute dimensions of box, margins, paddings, and borders for a floating - * element. + * element using shrink-to-fit. Also used for inline-blocks. + * + * \param available_width Max width available in pixels + * \param style Box's style + * \param box Box for which to find dimensions + * Box margins, borders, paddings, width and + * height are updated. */ void layout_float_find_dimensions(int available_width, @@ -3274,6 +3283,10 @@ void layout_position_relative(struct box *root, struct box *fp, int fx, int fy) /** * Compute a box's relative offset as per CSS 2.1 9.4.3 + * + * \param box Box to compute relative offsets for. + * \param x Receives relative offset in x. + * \param y Receives relative offset in y. */ void layout_compute_relative_offset(struct box *box, int *x, int *y) -- cgit v1.2.3