summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-01-05 09:53:53 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2014-01-05 09:53:53 +0000
commitcb679320f9804607d87a955b2efe9f51822fb8d9 (patch)
tree8ee2fc48a1885ce76ceae536badb2033d93ae81d
parentb4f986084885a366220d86d91be84be5dad7a0bc (diff)
downloadnetsurf-tlsa/computed-style-share.tar.gz
Port to latest version of computed style share libcss API.tlsa/computed-style-share
-rw-r--r--css/select.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/css/select.c b/css/select.c
index 0202737b8..76063f3c2 100644
--- a/css/select.c
+++ b/css/select.c
@@ -342,16 +342,10 @@ static css_computed_style *nscss_get_initial_style(nscss_select_ctx *ctx)
css_computed_style *style;
css_error error;
- error = css_computed_style_create(&style);
+ error = css_computed_style_create(&style, &selection_handler, ctx);
if (error != CSS_OK)
return NULL;
- error = css_computed_style_initialise(style, &selection_handler, ctx);
- if (error != CSS_OK) {
- css_computed_style_destroy(style);
- return NULL;
- }
-
return style;
}