From 83f9e707eba500d39c12b8078948b932706cdab2 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Mon, 9 May 2011 15:32:34 +0000 Subject: refactor content handler initilisation to use named initialisors svn path=/trunk/netsurf/; revision=12341 --- css/css.c | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) (limited to 'css/css.c') diff --git a/css/css.c b/css/css.c index a70ae8037..63862c720 100644 --- a/css/css.c +++ b/css/css.c @@ -79,21 +79,14 @@ static css_error nscss_register_import(struct content_css_data *c, const hlcache_handle *import); static const content_handler css_content_handler = { - nscss_create, - nscss_process_data, - nscss_convert, - NULL, - nscss_destroy, - NULL, - NULL, - NULL, - NULL, - NULL, - NULL, - nscss_clone, - nscss_matches_quirks, - nscss_content_type, - false + .create = nscss_create, + .process_data = nscss_process_data, + .data_complete = nscss_convert, + .destroy = nscss_destroy, + .clone = nscss_clone, + .matches_quirks = nscss_matches_quirks, + .type = nscss_content_type, + .no_share = false, }; static lwc_string *css_mime_type; -- cgit v1.2.3