summaryrefslogtreecommitdiff
path: root/src/parse/properties.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-01-18 00:54:36 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-01-18 00:54:36 +0000
commit567cf89fb92f9d2866a94bf2b5d1206c3590ed0a (patch)
treebb27942d23a64178a70c9fd0afd40df1aa4fc697 /src/parse/properties.c
parent106ab3dca862a892b2a7c54536adc8d8caaedc91 (diff)
downloadlibcss-567cf89fb92f9d2866a94bf2b5d1206c3590ed0a.tar.gz
libcss-567cf89fb92f9d2866a94bf2b5d1206c3590ed0a.tar.bz2
Fix play-during
svn path=/trunk/libcss/; revision=6130
Diffstat (limited to 'src/parse/properties.c')
-rw-r--r--src/parse/properties.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/parse/properties.c b/src/parse/properties.c
index b8539d3..422f46a 100644
--- a/src/parse/properties.c
+++ b/src/parse/properties.c
@@ -4527,6 +4527,8 @@ css_error parse_play_during(css_language *c,
uri = token->idata;
for (flags = 0; flags < 2; flags++) {
+ consumeWhitespace(vector, ctx);
+
token = parserutils_vector_peek(vector, *ctx);
if (token != NULL && token->type == CSS_TOKEN_IDENT) {
if (token->ilower == c->strings[MIX]) {
@@ -4555,7 +4557,8 @@ css_error parse_play_during(css_language *c,
opv = buildOPV(OP_PLAY_DURING, flags, value);
required_size = sizeof(opv);
- if ((flags & FLAG_INHERIT) == false && value == PLAY_DURING_URI)
+ if ((flags & FLAG_INHERIT) == false &&
+ (value & PLAY_DURING_TYPE_MASK) == PLAY_DURING_URI)
required_size += sizeof(parserutils_hash_entry *);
/* Allocate result */
@@ -4565,7 +4568,8 @@ css_error parse_play_during(css_language *c,
/* Copy the bytecode to it */
memcpy((*result)->bytecode, &opv, sizeof(opv));
- if ((flags & FLAG_INHERIT) == false && value == PLAY_DURING_URI) {
+ if ((flags & FLAG_INHERIT) == false &&
+ (value & PLAY_DURING_TYPE_MASK) == PLAY_DURING_URI) {
memcpy((uint8_t *) (*result)->bytecode + sizeof(opv),
&uri, sizeof(parserutils_hash_entry *));
}