aboutsummaryrefslogtreecommitdiff
path: root/src/cssparser.hh
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-11-13 17:02:53 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-11-13 17:02:53 +0100
commit81b02d9b8f7643923823c4b7014a0e3fd4c923fa (patch)
treed04ce693d68bb25f3edbdafc3e59e5e1307212b9 /src/cssparser.hh
parent449246d881bc452f91b366ad94f87fc8b199bbb7 (diff)
move CssLength stuff to css.hh
Diffstat (limited to 'src/cssparser.hh')
-rw-r--r--src/cssparser.hh29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/cssparser.hh b/src/cssparser.hh
index fc9cbccd..5089d9bb 100644
--- a/src/cssparser.hh
+++ b/src/cssparser.hh
@@ -49,35 +49,6 @@ typedef struct {
} CssPropertyInfo;
-/*
- * Lengths are represented as int in the following way:
- *
- * +---+ - - - +---+---+- - - - - -+---+---+---+---+
- * | integer part | decimal fraction | type |
- * +---+ - - - +---+---+- - - - - -+---+---+---+---+
- * n-1 19 18 3 2 1 0
- *
- * | <------ fixed point value ------> |
- *
- * where type is one of the CSS_LENGTH_TYPE_* values.
- */
-
-typedef int CssLength;
-
-enum {
- CSS_LENGTH_TYPE_PX,
- CSS_LENGTH_TYPE_MM, /* "cm", "in", "pt" and "pc" are converted into
- millimeters. */
- CSS_LENGTH_TYPE_EM,
- CSS_LENGTH_TYPE_EX,
- CSS_LENGTH_TYPE_PERCENTAGE,
- CSS_LENGTH_TYPE_AUTO /* This can be used as a simple value. */
-};
-
-#define CSS_CREATE_LENGTH(v, t) ( ( (int)((v) * (1 << 19)) & ~7 ) | (t) )
-#define CSS_LENGTH_VALUE(l) ( ( (float)((l) & ~7) ) / (1 << 19) )
-#define CSS_LENGTH_TYPE(l) ((l) & 7)
-
void a_Css_init (void);
void a_Css_freeall (void);