Fix bug #3171370: initialise font resolution callback pointers
svn path=/trunk/netsurf/; revision=11608
This commit is contained in:
parent
b6a7ab7af6
commit
28d1817bdd
|
@ -120,6 +120,8 @@ nserror nscss_create_css_data(struct content_css_data *c,
|
|||
params.import_pw = NULL;
|
||||
params.color = gui_system_colour;
|
||||
params.color_pw = NULL;
|
||||
params.font = NULL;
|
||||
params.font_pw = NULL;
|
||||
|
||||
error = css_stylesheet_create(¶ms, ns_realloc, NULL, &c->sheet);
|
||||
if (error != CSS_OK) {
|
||||
|
@ -462,6 +464,8 @@ css_error nscss_import_complete(struct content_css_data *c,
|
|||
params.import_pw = NULL;
|
||||
params.color = gui_system_colour;
|
||||
params.color_pw = NULL;
|
||||
params.font = NULL;
|
||||
params.font_pw = NULL;
|
||||
|
||||
error = css_stylesheet_create(¶ms,
|
||||
ns_realloc, NULL,
|
||||
|
|
|
@ -179,6 +179,8 @@ css_stylesheet *nscss_create_inline_style(const uint8_t *data, size_t len,
|
|||
params.import_pw = NULL;
|
||||
params.color = gui_system_colour;
|
||||
params.color_pw = NULL;
|
||||
params.font = NULL;
|
||||
params.font_pw = NULL;
|
||||
|
||||
error = css_stylesheet_create(¶ms, alloc, pw, &sheet);
|
||||
if (error != CSS_OK) {
|
||||
|
|
Loading…
Reference in New Issue