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 | |
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')
-rw-r--r-- | include/libcss/computed.h | 7 | ||||
-rw-r--r-- | include/libcss/select.h | 3 |
2 files changed, 7 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 * diff --git a/include/libcss/select.h b/include/libcss/select.h index 74fa5d2..3f1e14a 100644 --- a/include/libcss/select.h +++ b/include/libcss/select.h @@ -217,6 +217,9 @@ css_error css_select_ctx_count_sheets(css_select_ctx *ctx, uint32_t *count); css_error css_select_ctx_get_sheet(css_select_ctx *ctx, uint32_t index, const css_stylesheet **sheet); +css_error css_select_default_style(css_select_ctx *ctx, + css_select_handler *handler, void *pw, + css_computed_style **style); css_error css_select_style(css_select_ctx *ctx, void *node, uint64_t media, const css_stylesheet *inline_style, css_select_handler *handler, void *pw, |