From cb50cd7b61dc73c32d30c03562519388b34f791d Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Fri, 16 Jan 2009 13:26:01 +0000 Subject: Fix opcode for background-position svn path=/trunk/libcss/; revision=6078 --- src/parse/properties.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/parse') 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) { -- cgit v1.2.3