summaryrefslogtreecommitdiff
path: root/src/css.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/css.hh')
-rw-r--r--src/css.hh10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/css.hh b/src/css.hh
index 6b142827..29f0b24a 100644
--- a/src/css.hh
+++ b/src/css.hh
@@ -45,6 +45,8 @@ typedef enum {
opposed to CSS_TYPE_ENUM and
CSS_TYPE_MULTI_ENUM). Used for
'font-family'. */
+ CSS_TYPE_URI, /* <uri> */
+ CSS_TYPE_BACKGROUND_POSITION,
CSS_TYPE_UNUSED /* Not yet used. Will itself get unused some
day. */
} CssValueType;
@@ -229,9 +231,15 @@ typedef enum {
CSS_PROPERTY_LAST
} CssPropertyName;
+typedef struct {
+ int32_t posX;
+ int32_t posY;
+} CssBackgroundPosition;
+
typedef union {
int32_t intVal;
char *strVal;
+ CssBackgroundPosition *posVal;
} CssPropertyValue;
typedef enum {
@@ -285,6 +293,8 @@ class CssProperty {
case CSS_TYPE_SYMBOL:
dFree (value.strVal);
break;
+ case CSS_TYPE_BACKGROUND_POSITION:
+ dFree (value.posVal);
default:
break;
}