mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 20:46:50 +03:00
Reflect changes to libcss API
svn path=/trunk/netsurf/; revision=11001
This commit is contained in:
parent
1a7dffdac6
commit
08ca689172
@ -111,6 +111,7 @@ nserror nscss_create_css_data(struct content_css_data *c,
|
|||||||
url, NULL, quirks, false,
|
url, NULL, quirks, false,
|
||||||
ns_realloc, NULL,
|
ns_realloc, NULL,
|
||||||
nscss_resolve_url, NULL,
|
nscss_resolve_url, NULL,
|
||||||
|
NULL, NULL,
|
||||||
&c->sheet);
|
&c->sheet);
|
||||||
if (error != CSS_OK) {
|
if (error != CSS_OK) {
|
||||||
return NSERROR_NOMEM;
|
return NSERROR_NOMEM;
|
||||||
@ -442,6 +443,7 @@ css_error nscss_import_complete(struct content_css_data *c,
|
|||||||
NULL, "", NULL, false, false,
|
NULL, "", NULL, false, false,
|
||||||
ns_realloc, NULL,
|
ns_realloc, NULL,
|
||||||
nscss_resolve_url, NULL,
|
nscss_resolve_url, NULL,
|
||||||
|
NULL, NULL,
|
||||||
&blank_import);
|
&blank_import);
|
||||||
if (error != CSS_OK) {
|
if (error != CSS_OK) {
|
||||||
return error;
|
return error;
|
||||||
|
@ -136,7 +136,7 @@ css_stylesheet *nscss_create_inline_style(const uint8_t *data, size_t len,
|
|||||||
|
|
||||||
error = css_stylesheet_create(CSS_LEVEL_DEFAULT, charset, url, NULL,
|
error = css_stylesheet_create(CSS_LEVEL_DEFAULT, charset, url, NULL,
|
||||||
allow_quirks, true, alloc, pw, nscss_resolve_url,
|
allow_quirks, true, alloc, pw, nscss_resolve_url,
|
||||||
NULL, &sheet);
|
NULL, NULL, NULL, &sheet);
|
||||||
if (error != CSS_OK) {
|
if (error != CSS_OK) {
|
||||||
LOG(("Failed creating sheet: %d", error));
|
LOG(("Failed creating sheet: %d", error));
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user