summaryrefslogtreecommitdiff
path: root/src/select/properties/cursor.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-01-05 00:44:04 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-01-05 00:44:04 +0000
commit4860bd14179e94a7d073714c1c5b21fd9c200dd7 (patch)
treed6343a55826ee6d6ae3801c0453dcce12a0e987e /src/select/properties/cursor.c
parente094fcbc9fcf39fb2d71cd521e8076f4703fa100 (diff)
downloadlibcss-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/cursor.c')
-rw-r--r--src/select/properties/cursor.c22
1 files changed, 11 insertions, 11 deletions
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,