Reflect changes to libcss API

svn path=/trunk/netsurf/; revision=11001
This commit is contained in:
John Mark Bell 2010-12-05 14:24:29 +00:00
parent 1a7dffdac6
commit 08ca689172
2 changed files with 3 additions and 1 deletions

View File

@ -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;

View File

@ -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;