summaryrefslogtreecommitdiff
path: root/src/parse
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-01-16 13:26:01 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-01-16 13:26:01 +0000
commitcb50cd7b61dc73c32d30c03562519388b34f791d (patch)
treeb9f09175e90e8ff3da529f6ecf5f2fb880cf6da7 /src/parse
parentffe113b218b8b406c116744b7c154c09818fd608 (diff)
downloadlibcss-cb50cd7b61dc73c32d30c03562519388b34f791d.tar.gz
libcss-cb50cd7b61dc73c32d30c03562519388b34f791d.tar.bz2
Fix opcode for background-position
svn path=/trunk/libcss/; revision=6078
Diffstat (limited to 'src/parse')
-rw-r--r--src/parse/properties.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/parse/properties.c b/src/parse/properties.c
index 21d07a0..f28eaaa 100644
--- a/src/parse/properties.c
+++ b/src/parse/properties.c
@@ -829,6 +829,9 @@ css_error parse_background_position(css_language *c,
/* Now, sort out the mess we've got */
if (i == 1) {
+ assert(BACKGROUND_POSITION_VERT_CENTER ==
+ BACKGROUND_POSITION_HORZ_CENTER);
+
/* Only one (horizontal) value, so vertical is center */
switch (value[0]) {
case BACKGROUND_POSITION_HORZ_LEFT:
@@ -867,7 +870,7 @@ css_error parse_background_position(css_language *c,
if (error != CSS_OK)
return error;
- opv = buildOPV(OP_BOTTOM, flags, value[0] | value[1]);
+ opv = buildOPV(OP_BACKGROUND_POSITION, flags, value[0] | value[1]);
required_size = sizeof(opv);
if ((flags & FLAG_INHERIT) == false) {