diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-02-07 02:22:17 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-02-07 02:22:17 +0000 |
commit | 81a449399607a98b7c87890aea4a2eff03498050 (patch) | |
tree | a6cd543a019b1258d8d783726c277f475285d4bc /include/libcss/computed.h | |
parent | 3f5ac6a18b13034f14c7f9261f57887a52e454e3 (diff) | |
download | libcss-81a449399607a98b7c87890aea4a2eff03498050.tar.gz libcss-81a449399607a98b7c87890aea4a2eff03498050.tar.bz2 |
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
Diffstat (limited to 'include/libcss/computed.h')
-rw-r--r-- | include/libcss/computed.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 * |