summaryrefslogtreecommitdiff
path: root/css/css.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2004-08-01 21:56:47 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2004-08-01 21:56:47 +0000
commit6103e3f0cd0adae97da91fbd9c52ad2a3efb3092 (patch)
treec7625b892c773a1c0131a47025fd3bee71114526 /css/css.h
parentdcb72507b2d7e1265c123b47e91c93b1b9c237ca (diff)
downloadnetsurf-6103e3f0cd0adae97da91fbd9c52ad2a3efb3092.tar.gz
netsurf-6103e3f0cd0adae97da91fbd9c52ad2a3efb3092.tar.bz2
[project @ 2004-08-01 21:56:47 by jmb]
Rationalise top, bottom, right and left property handling svn path=/import/netsurf/; revision=1174
Diffstat (limited to 'css/css.h')
-rw-r--r--css/css.h52
1 files changed, 10 insertions, 42 deletions
diff --git a/css/css.h b/css/css.h
index 63c311a30..c96b2a250 100644
--- a/css/css.h
+++ b/css/css.h
@@ -3,6 +3,7 @@
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2004 James Bursa <bursa@users.sourceforge.net>
+ * Copyright 2004 John M Bell <jmb202@ecs.soton.ac.uk>
*/
/** \file
@@ -134,17 +135,6 @@ struct css_style {
struct css_length vert;
} border_spacing;
- struct {
- enum { CSS_BOTTOM_INHERIT,
- CSS_BOTTOM_AUTO,
- CSS_BOTTOM_PERCENT,
- CSS_BOTTOM_LENGTH } bottom;
- union {
- struct css_length length;
- float percent;
- } value;
- } bottom;
-
css_caption_side caption_side;
css_clear clear;
@@ -194,17 +184,6 @@ struct css_style {
} height;
struct {
- enum { CSS_LEFT_INHERIT,
- CSS_LEFT_AUTO,
- CSS_LEFT_PERCENT,
- CSS_LEFT_LENGTH } left;
- union {
- struct css_length length;
- float percent;
- } value;
- } left;
-
- struct {
enum { CSS_LETTER_SPACING_INHERIT,
CSS_LETTER_SPACING_NORMAL,
CSS_LETTER_SPACING_LENGTH } letter_spacing;
@@ -315,20 +294,20 @@ struct css_style {
css_page_break_before page_break_before;
css_page_break_inside page_break_inside;
- css_position position;
-
- /** \todo quotes */
-
struct {
- enum { CSS_RIGHT_INHERIT,
- CSS_RIGHT_AUTO,
- CSS_RIGHT_PERCENT,
- CSS_RIGHT_LENGTH } right;
+ enum { CSS_POS_INHERIT,
+ CSS_POS_AUTO,
+ CSS_POS_PERCENT,
+ CSS_POS_LENGTH } pos;
union {
struct css_length length;
float percent;
} value;
- } right;
+ } pos[4]; /**< top, right, bottom, left */
+
+ css_position position;
+
+ /** \todo quotes */
css_table_layout table_layout;
@@ -346,17 +325,6 @@ struct css_style {
} text_indent;
css_text_transform text_transform;
- struct {
- enum { CSS_TOP_INHERIT,
- CSS_TOP_AUTO,
- CSS_TOP_PERCENT,
- CSS_TOP_LENGTH } top;
- union {
- struct css_length length;
- float percent;
- } value;
- } top;
-
css_unicode_bidi unicode_bidi;
struct {