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 /test/select-common.c | |
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 'test/select-common.c')
-rw-r--r-- | test/select-common.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/select-common.c b/test/select-common.c index c6d33c0..b4f588a 100644 --- a/test/select-common.c +++ b/test/select-common.c @@ -769,11 +769,14 @@ static void run_test_select_tree(css_select_ctx *select, &select_handler, ctx, &sr) == CSS_OK); if (node->parent != NULL) { + css_computed_style *composed; assert(css_computed_style_compose( node->parent->sr->styles[ctx->pseudo_element], sr->styles[ctx->pseudo_element], compute_font_size, NULL, - &(sr->styles[ctx->pseudo_element])) == CSS_OK); + &composed) == CSS_OK); + css_computed_style_destroy(sr->styles[ctx->pseudo_element]); + sr->styles[ctx->pseudo_element] = composed; } node->sr = sr; |