CSS: Update for change to libcss imported sheet API.

The media is not exposed and sent back into libcss now.

Signed-off-by: Michael Drake <michael.drake@codethink.co.uk>
This commit is contained in:
Michael Drake 2019-05-04 10:37:45 +01:00
parent 19b45fb494
commit 637b4e5fc0
2 changed files with 2 additions and 5 deletions

View File

@ -98,7 +98,7 @@ static void nscss_destroy_css_data(struct content_css_data *c);
static void nscss_content_done(struct content_css_data *css, void *pw);
static css_error nscss_handle_import(void *pw, css_stylesheet *parent,
lwc_string *url, uint64_t media);
lwc_string *url);
static nserror nscss_import(hlcache_handle *handle,
const hlcache_event *event, void *pw);
static css_error nscss_import_complete(nscss_import_ctx *ctx);
@ -512,11 +512,10 @@ void nscss_content_done(struct content_css_data *css, void *pw)
* \param pw CSS object requesting the import
* \param parent Stylesheet requesting the import
* \param url URL of the imported sheet
* \param media Applicable media for the imported sheet
* \return CSS_OK on success, appropriate error otherwise
*/
css_error nscss_handle_import(void *pw, css_stylesheet *parent,
lwc_string *url, uint64_t media)
lwc_string *url)
{
content_type accept = CONTENT_CSS;
struct content_css_data *c = pw;
@ -562,7 +561,6 @@ css_error nscss_handle_import(void *pw, css_stylesheet *parent,
}
/* Create content */
c->imports[c->import_count].media = media;
/** \todo Why aren't we getting a relative url part, to join? */
nerror = nsurl_create(lwc_string_data(url), &ns_url);

View File

@ -32,7 +32,6 @@ struct hlcache_handle;
*/
struct nscss_import {
struct hlcache_handle *c; /**< Content containing sheet */
uint64_t media; /**< Media types that sheet applies to */
};
/**