summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-01-18 01:20:16 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-01-18 01:20:16 +0000
commitdbe7bbad9d36242fc8cceeac5643852e92509a26 (patch)
tree9033dc6dd81f4511075215952e8145eb1bc06f3f /src
parenta88fe453e2cd9e6d5578c7ef75b830d5dddb21b2 (diff)
downloadlibcss-dbe7bbad9d36242fc8cceeac5643852e92509a26.tar.gz
libcss-dbe7bbad9d36242fc8cceeac5643852e92509a26.tar.bz2
Fix volume
svn path=/trunk/libcss/; revision=6138
Diffstat (limited to 'src')
-rw-r--r--src/parse/properties.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parse/properties.c b/src/parse/properties.c
index 0316d9e..8679d64 100644
--- a/src/parse/properties.c
+++ b/src/parse/properties.c
@@ -6081,11 +6081,12 @@ css_error parse_volume(css_language *c,
} else if (token->type == CSS_TOKEN_NUMBER) {
size_t consumed = 0;
css_string tmp = { token->ilower->len,
- (uint8_t *) token->ilower };
+ (uint8_t *) token->ilower->data };
length = number_from_css_string(&tmp, false, &consumed);
if (consumed != token->ilower->len)
return CSS_INVALID;
+ parserutils_vector_iterate(vector, ctx);
value = VOLUME_NUMBER;
} else {
/* Yes, really UNIT_PX -- percentages MUST have a % sign */