summaryrefslogtreecommitdiff
path: root/css
diff options
context:
space:
mode:
authorFran├žois Revel <mmu_man@netsurf-browser.org>2008-07-29 09:18:53 +0000
committerFran├žois Revel <mmu_man@netsurf-browser.org>2008-07-29 09:18:53 +0000
commit971c93fece0df166546ed5fdb5d3ea9da8805bdb (patch)
tree59d800ac1c40938f17f020644627f08b313b3aac /css
parent73040da7a37825309bee4d38066e8af35f0a21d8 (diff)
downloadnetsurf-971c93fece0df166546ed5fdb5d3ea9da8805bdb.tar.gz
netsurf-971c93fece0df166546ed5fdb5d3ea9da8805bdb.tar.bz2
gcc2 doesn't find CSS_FONT_SIZE_LENGTH, moved css_font_size_type to its own type.
svn path=/trunk/netsurf/; revision=4791
Diffstat (limited to 'css')
-rw-r--r--css/css.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/css/css.h b/css/css.h
index d8f922e61..1396206ad 100644
--- a/css/css.h
+++ b/css/css.h
@@ -152,6 +152,14 @@ typedef enum {
CSS_VERTICAL_ALIGN_NOT_SET
} css_vertical_align_type;
+typedef enum {
+ CSS_FONT_SIZE_INHERIT,
+ CSS_FONT_SIZE_ABSOLUTE,
+ CSS_FONT_SIZE_LENGTH,
+ CSS_FONT_SIZE_PERCENT,
+ CSS_FONT_SIZE_NOT_SET
+} css_font_size_type;
+
struct css_counter_control {
char *name;
int value;
@@ -255,11 +263,7 @@ struct css_style {
/* font properties */
css_font_family font_family;
struct {
- enum { CSS_FONT_SIZE_INHERIT,
- CSS_FONT_SIZE_ABSOLUTE,
- CSS_FONT_SIZE_LENGTH,
- CSS_FONT_SIZE_PERCENT,
- CSS_FONT_SIZE_NOT_SET } size;
+ css_font_size_type size;
union {
struct css_length length;
float absolute;