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/quotes.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/quotes.c')
-rw-r--r-- | src/select/properties/quotes.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/select/properties/quotes.c b/src/select/properties/quotes.c index da3b737..8d4fcbc 100644 --- a/src/select/properties/quotes.c +++ b/src/select/properties/quotes.c @@ -36,13 +36,13 @@ css_error cascade_quotes(uint32_t opv, css_style *style, close = *((lwc_string **) style->bytecode); advance_bytecode(style, sizeof(lwc_string *)); - temp = state->result->alloc(quotes, + temp = state->computed->alloc(quotes, (n_quotes + 2) * sizeof(lwc_string *), - state->result->pw); + state->computed->pw); if (temp == NULL) { if (quotes != NULL) { - state->result->alloc(quotes, 0, - state->result->pw); + state->computed->alloc(quotes, 0, + state->computed->pw); } return CSS_NOMEM; } @@ -61,11 +61,11 @@ css_error cascade_quotes(uint32_t opv, css_style *style, if (n_quotes > 0) { lwc_string **temp; - temp = state->result->alloc(quotes, + temp = state->computed->alloc(quotes, (n_quotes + 1) * sizeof(lwc_string *), - state->result->pw); + state->computed->pw); if (temp == NULL) { - state->result->alloc(quotes, 0, state->result->pw); + state->computed->alloc(quotes, 0, state->computed->pw); return CSS_NOMEM; } @@ -78,14 +78,14 @@ css_error cascade_quotes(uint32_t opv, css_style *style, isInherit(opv))) { css_error error; - error = set_quotes(state->result, value, quotes); + error = set_quotes(state->computed, value, quotes); if (error != CSS_OK && quotes != NULL) - state->result->alloc(quotes, 0, state->result->pw); + state->computed->alloc(quotes, 0, state->computed->pw); return error; } else { if (quotes != NULL) - state->result->alloc(quotes, 0, state->result->pw); + state->computed->alloc(quotes, 0, state->computed->pw); } return CSS_OK; @@ -120,7 +120,7 @@ css_error initial_quotes(css_select_state *state) if (error != CSS_OK) return error; - return set_quotes_from_hint(&hint, state->result); + return set_quotes_from_hint(&hint, state->computed); } css_error compose_quotes(const css_computed_style *parent, |