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/cursor.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/select/properties/cursor.c') diff --git a/src/select/properties/cursor.c b/src/select/properties/cursor.c index 6269744..249d8b4 100644 --- a/src/select/properties/cursor.c +++ b/src/select/properties/cursor.c @@ -31,13 +31,13 @@ css_error cascade_cursor(uint32_t opv, css_style *style, uri = *((lwc_string **) style->bytecode); advance_bytecode(style, sizeof(uri)); - temp = state->result->alloc(uris, + temp = state->computed->alloc(uris, (n_uris + 1) * sizeof(lwc_string *), - state->result->pw); + state->computed->pw); if (temp == NULL) { if (uris != NULL) { - state->result->alloc(uris, 0, - state->result->pw); + state->computed->alloc(uris, 0, + state->computed->pw); } return CSS_NOMEM; } @@ -111,11 +111,11 @@ css_error cascade_cursor(uint32_t opv, css_style *style, if (n_uris > 0) { lwc_string **temp; - temp = state->result->alloc(uris, + temp = state->computed->alloc(uris, (n_uris + 1) * sizeof(lwc_string *), - state->result->pw); + state->computed->pw); if (temp == NULL) { - state->result->alloc(uris, 0, state->result->pw); + state->computed->alloc(uris, 0, state->computed->pw); return CSS_NOMEM; } @@ -128,14 +128,14 @@ css_error cascade_cursor(uint32_t opv, css_style *style, isInherit(opv))) { css_error error; - error = set_cursor(state->result, value, uris); + error = set_cursor(state->computed, value, uris); if (error != CSS_OK && n_uris > 0) - state->result->alloc(uris, 0, state->result->pw); + state->computed->alloc(uris, 0, state->computed->pw); return error; } else { if (n_uris > 0) - state->result->alloc(uris, 0, state->result->pw); + state->computed->alloc(uris, 0, state->computed->pw); } return CSS_OK; @@ -162,7 +162,7 @@ css_error set_cursor_from_hint(const css_hint *hint, css_error initial_cursor(css_select_state *state) { - return set_cursor(state->result, CSS_CURSOR_AUTO, NULL); + return set_cursor(state->computed, CSS_CURSOR_AUTO, NULL); } css_error compose_cursor(const css_computed_style *parent, -- cgit v1.2.3