summaryrefslogtreecommitdiff
path: root/render/box.h
diff options
context:
space:
mode:
Diffstat (limited to 'render/box.h')
-rw-r--r--render/box.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/render/box.h b/render/box.h
index f68720937..7eaca2622 100644
--- a/render/box.h
+++ b/render/box.h
@@ -139,9 +139,12 @@ struct box {
int scroll_x; /**< Horizontal scroll of descendants. */
int scroll_y; /**< Vertical scroll of descendants. */
- /**< Width of box taking all line breaks (including margins etc.). */
+ /** Width of box taking all line breaks (including margins etc). Must
+ * be non-negative. */
int min_width;
- int max_width; /**< Width that would be taken with no line breaks. */
+ /** Width that would be taken with no line breaks. Must be
+ * non-negative. */
+ int max_width;
/**< Byte offset within a textual representation of this content. */
size_t byte_offset;