From 81a449399607a98b7c87890aea4a2eff03498050 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 7 Feb 2009 02:22:17 +0000 Subject: Oh look, I've changed my mind again. It's far better that the client creates computed style objects which we then populate. This will allow more efficient composition of styles as, in the most common case, it won't require any memory allocation. svn path=/trunk/libcss/; revision=6390 --- include/libcss/computed.h | 4 +++- include/libcss/select.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/libcss/computed.h b/include/libcss/computed.h index 61cb888..f47c523 100644 --- a/include/libcss/computed.h +++ b/include/libcss/computed.h @@ -294,11 +294,13 @@ struct css_computed_style { void *pw; }; +css_error css_computed_style_create(css_alloc alloc, void *pw, + css_computed_style **result); css_error css_computed_style_destroy(css_computed_style *style); css_error css_computed_style_compose(const css_computed_style *parent, const css_computed_style *child, - css_computed_style **result); + css_computed_style *result); /****************************************************************************** * Property accessors below here * diff --git a/include/libcss/select.h b/include/libcss/select.h index e8d8ff8..1948ca1 100644 --- a/include/libcss/select.h +++ b/include/libcss/select.h @@ -29,6 +29,6 @@ css_error css_select_ctx_get_sheet(css_select_ctx *ctx, uint32_t index, css_error css_select_style(css_select_ctx *ctx, void *node, uint64_t pseudo_element, uint64_t pseudo_classes, - uint64_t media, css_computed_style **result); + uint64_t media, css_computed_style *result); #endif -- cgit v1.2.3