From f69c024ecbef585bbd26ac90eb3a5e3de99fcf2d Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 10 Jun 2008 22:00:12 +0000 Subject: Add param and return details to layout_solve_width() comment. svn path=/trunk/netsurf/; revision=4322 --- render/layout.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'render') diff --git a/render/layout.c b/render/layout.c index 00f1a9629..4dd49ae3d 100644 --- a/render/layout.c +++ b/render/layout.c @@ -754,6 +754,16 @@ void layout_block_add_scrollbar(struct box *box, int which) /** * Solve the width constraint as given in CSS 2.1 section 10.3.3. + * + * \param available_width Max width available in pixels + * \param width Current box width + * \param margin[4] Current box margins. Updated with new box + * left / right margins + * \param padding[4] Current box paddings. Updated with new box + * left / right paddings + * \param border[4] Current box border widths. Updated to with new + * box left / right border widths + * \return New box width */ int layout_solve_width(int available_width, int width, -- cgit v1.2.3