summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--render/layout.c10
1 files changed, 10 insertions, 0 deletions
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,