diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2004-07-16 20:26:49 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2004-07-16 20:26:49 +0000 |
commit | 51af46fde6b5885d32eab0812189eb8f5e270abf (patch) | |
tree | 68d72bf6dfb05988088c3bda1664db5ac1bb4c3b /render/box.h | |
parent | 6560a2ae5f68831bec809e9ee847ac0e36ff011d (diff) | |
download | netsurf-51af46fde6b5885d32eab0812189eb8f5e270abf.tar.gz netsurf-51af46fde6b5885d32eab0812189eb8f5e270abf.tar.bz2 |
[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
Diffstat (limited to 'render/box.h')
-rw-r--r-- | render/box.h | 19 |
1 files changed, 19 insertions, 0 deletions
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. */ |