From 920d6fa23dcf954a280812feeae4baf02fcaeb57 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 4 May 2019 12:02:55 +0100 Subject: CSS: Update for change to libcss select style API. LibCSS now takes the client media spec, rather than just the media type we're selecting for. Signed-off-by: Michael Drake --- content/handlers/html/html.c | 1 + 1 file changed, 1 insertion(+) (limited to 'content/handlers/html/html.c') diff --git a/content/handlers/html/html.c b/content/handlers/html/html.c index 30af90f97..9c60c7bb1 100644 --- a/content/handlers/html/html.c +++ b/content/handlers/html/html.c @@ -950,6 +950,7 @@ html_create_html_data(html_content *c, const http_parameter *params) c->stylesheet_count = 0; c->stylesheets = NULL; c->select_ctx = NULL; + c->media.type = CSS_MEDIA_SCREEN; c->universal = NULL; c->num_objects = 0; c->object_list = NULL; -- cgit v1.2.3