mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 04:26:50 +03:00
Sync with versioned libcss ABI
svn path=/trunk/netsurf/; revision=12008
This commit is contained in:
parent
009ba43d6e
commit
b652e1f36e
@ -129,6 +129,7 @@ nserror nscss_create_css_data(struct content_css_data *c,
|
||||
else
|
||||
c->charset = NULL;
|
||||
|
||||
params.params_version = CSS_STYLESHEET_PARAMS_VERSION_1;
|
||||
params.level = CSS_LEVEL_DEFAULT;
|
||||
params.charset = charset;
|
||||
params.url = url;
|
||||
@ -595,6 +596,7 @@ css_error nscss_register_import(struct content_css_data *c,
|
||||
if (blank_import == NULL) {
|
||||
css_stylesheet_params params;
|
||||
|
||||
params.params_version = CSS_STYLESHEET_PARAMS_VERSION_1;
|
||||
params.level = CSS_LEVEL_DEFAULT;
|
||||
params.charset = NULL;
|
||||
params.url = "";
|
||||
|
@ -110,6 +110,8 @@ static uint8_t charToHex(char c);
|
||||
* Selection callback table for libcss
|
||||
*/
|
||||
static css_select_handler selection_handler = {
|
||||
CSS_SELECT_HANDLER_VERSION_1,
|
||||
|
||||
node_name,
|
||||
node_classes,
|
||||
node_id,
|
||||
@ -167,6 +169,7 @@ css_stylesheet *nscss_create_inline_style(const uint8_t *data, size_t len,
|
||||
css_stylesheet *sheet;
|
||||
css_error error;
|
||||
|
||||
params.params_version = CSS_STYLESHEET_PARAMS_VERSION_1;
|
||||
params.level = CSS_LEVEL_DEFAULT;
|
||||
params.charset = charset;
|
||||
params.url = url;
|
||||
|
Loading…
Reference in New Issue
Block a user