gcc2 doesn't find CSS_FONT_SIZE_LENGTH, moved css_font_size_type to its own type.

svn path=/trunk/netsurf/; revision=4791
This commit is contained in:
François Revel 2008-07-29 09:18:53 +00:00
parent 73040da7a3
commit 971c93fece
1 changed files with 9 additions and 5 deletions

View File

@ -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;