From 4860bd14179e94a7d073714c1c5b21fd9c200dd7 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Wed, 5 Jan 2011 00:44:04 +0000 Subject: Simultaneously select styles for base + pseudo elements. svn path=/trunk/libcss/; revision=11211 --- src/select/properties/quotes.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/select/properties/quotes.c') 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, -- cgit v1.2.3