diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2015-11-02 16:10:36 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2016-11-19 14:30:07 +0000 |
commit | fb095fb2411d3127df035d93b7b33ff6064ad2e9 (patch) | |
tree | 46de66ca5bd6baf3a44e0b7d4b498eadeed2dd16 /include/libcss/computed.h | |
parent | 1d7d0f7616df4fb9fe6e6e5acd34e90859fcb12d (diff) | |
download | libcss-fb095fb2411d3127df035d93b7b33ff6064ad2e9.tar.gz libcss-fb095fb2411d3127df035d93b7b33ff6064ad2e9.tar.bz2 |
Intern partial styles.
Note this changes the public API. We can't compose directly
over child style now, since it may be interned.
Diffstat (limited to 'include/libcss/computed.h')
-rw-r--r-- | include/libcss/computed.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/libcss/computed.h b/include/libcss/computed.h index 0009267..db3e3e4 100644 --- a/include/libcss/computed.h +++ b/include/libcss/computed.h @@ -82,13 +82,14 @@ css_error css_computed_style_destroy(css_computed_style *style); css_error css_computed_style_initialise(css_computed_style *style, struct css_select_handler *handler, void *pw); -css_error css_computed_style_compose(const css_computed_style *parent, - css_computed_style *child, +css_error css_computed_style_compose( + const css_computed_style *restrict parent, + const css_computed_style *restrict child, css_error (*compute_font_size)(void *pw, const struct css_hint *parent, struct css_hint *size), void *pw, - css_computed_style **result); + css_computed_style **restrict result); /****************************************************************************** * Property accessors below here * |