diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2011-01-05 00:44:04 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2011-01-05 00:44:04 +0000 |
commit | 4860bd14179e94a7d073714c1c5b21fd9c200dd7 (patch) | |
tree | d6343a55826ee6d6ae3801c0453dcce12a0e987e /src/select/properties/voice_family.c | |
parent | e094fcbc9fcf39fb2d71cd521e8076f4703fa100 (diff) | |
download | libcss-4860bd14179e94a7d073714c1c5b21fd9c200dd7.tar.gz libcss-4860bd14179e94a7d073714c1c5b21fd9c200dd7.tar.bz2 |
Simultaneously select styles for base + pseudo elements.
svn path=/trunk/libcss/; revision=11211
Diffstat (limited to 'src/select/properties/voice_family.c')
-rw-r--r-- | src/select/properties/voice_family.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/select/properties/voice_family.c b/src/select/properties/voice_family.c index efe60b4..cc1833c 100644 --- a/src/select/properties/voice_family.c +++ b/src/select/properties/voice_family.c @@ -54,13 +54,13 @@ css_error cascade_voice_family(uint32_t opv, css_style *style, * first generic-family are ignored. */ /** \todo Do this at bytecode generation time? */ if (value == 0 && voice != NULL) { - temp = state->result->alloc(voices, + temp = state->computed->alloc(voices, (n_voices + 1) * sizeof(lwc_string *), - state->result->pw); + state->computed->pw); if (temp == NULL) { if (voices != NULL) { - state->result->alloc(voices, 0, - state->result->pw); + state->computed->alloc(voices, 0, + state->computed->pw); } return CSS_NOMEM; } @@ -81,11 +81,11 @@ css_error cascade_voice_family(uint32_t opv, css_style *style, if (n_voices > 0) { lwc_string **temp; - temp = state->result->alloc(voices, + temp = state->computed->alloc(voices, (n_voices + 1) * sizeof(lwc_string *), - state->result->pw); + state->computed->pw); if (temp == NULL) { - state->result->alloc(voices, 0, state->result->pw); + state->computed->alloc(voices, 0, state->computed->pw); return CSS_NOMEM; } @@ -98,10 +98,10 @@ css_error cascade_voice_family(uint32_t opv, css_style *style, isInherit(opv))) { /** \todo voice-family */ if (n_voices > 0) - state->result->alloc(voices, 0, state->result->pw); + state->computed->alloc(voices, 0, state->computed->pw); } else { if (n_voices > 0) - state->result->alloc(voices, 0, state->result->pw); + state->computed->alloc(voices, 0, state->computed->pw); } return CSS_OK; |