diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2019-05-04 12:02:55 +0100 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2019-05-04 14:51:42 +0100 |
commit | 920d6fa23dcf954a280812feeae4baf02fcaeb57 (patch) | |
tree | 9de362dd786bdafba3e41d2a11a9d0dc43d39642 /content/handlers/html/box_construct.c | |
parent | 637b4e5fc0ddb5db17b09778567cbad373d36beb (diff) | |
download | netsurf-920d6fa23dcf954a280812feeae4baf02fcaeb57.tar.gz netsurf-920d6fa23dcf954a280812feeae4baf02fcaeb57.tar.bz2 |
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 <michael.drake@codethink.co.uk>
Diffstat (limited to 'content/handlers/html/box_construct.c')
-rw-r--r-- | content/handlers/html/box_construct.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content/handlers/html/box_construct.c b/content/handlers/html/box_construct.c index e7ac811ef..eb3bba7c3 100644 --- a/content/handlers/html/box_construct.c +++ b/content/handlers/html/box_construct.c @@ -1373,7 +1373,7 @@ css_select_results *box_get_style(html_content *c, ctx.parent_style = parent_style; /* Select style for element */ - styles = nscss_get_style(&ctx, n, CSS_MEDIA_SCREEN, inline_style); + styles = nscss_get_style(&ctx, n, &c->media, inline_style); /* No longer need inline style */ if (inline_style != NULL) |