From 51af46fde6b5885d32eab0812189eb8f5e270abf Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Fri, 16 Jul 2004 20:26:49 +0000 Subject: [project @ 2004-07-16 20:26:49 by jmb] Preliminary overflow support. This also goes some way to making the horizontal scrollbar work. svn path=/import/netsurf/; revision=1088 --- render/box.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'render/box.h') diff --git a/render/box.h b/render/box.h index 142a74c6a..815a5fcf8 100644 --- a/render/box.h +++ b/render/box.h @@ -140,6 +140,25 @@ struct box { int width; /**< Width of content box (excluding padding etc.). */ int height; /**< Height of content box (excluding padding etc.). */ + /* These four variables determine the maximum extent of a box's + * descendants. They are relative to the x,y coordinates of the box. + * + * Their use depends on the overflow CSS property: + * + * Overflow: Usage: + * visible The content of the box is displayed within these + * dimensions. + * hidden These are ignored. Content is plotted within the box + * dimensions. + * scroll These are used to determine the extent of the + * scrollable area. + * auto As "scroll". + */ + int descendant_x0; /**< left edge of descendants */ + int descendant_y0; /**< top edge of descendants */ + int descendant_x1; /**< right edge of descendants */ + int descendant_y1; /**< bottom edge of descendants */ + int margin[4]; /**< Margin: TOP, RIGHT, BOTTOM, LEFT. */ int padding[4]; /**< Padding: TOP, RIGHT, BOTTOM, LEFT. */ int border[4]; /**< Border width: TOP, RIGHT, BOTTOM, LEFT. */ -- cgit v1.2.3