mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 20:16:54 +03:00
Prevent assertion when imported stylesheet fails to load.
svn path=/trunk/netsurf/; revision=10256
This commit is contained in:
parent
eae4845015
commit
1c6d8c7e47
10
css/css.c
10
css/css.c
@ -179,11 +179,13 @@ bool nscss_convert(struct content *c)
|
||||
|
||||
/* Add on the size of the imported sheets */
|
||||
for (i = 0; i < c->data.css.import_count; i++) {
|
||||
struct content *import = hlcache_handle_get_content(
|
||||
c->data.css.imports[i].c);
|
||||
if (c->data.css.imports[i].c != NULL) {
|
||||
struct content *import = hlcache_handle_get_content(
|
||||
c->data.css.imports[i].c);
|
||||
|
||||
if (import != NULL) {
|
||||
c->size += import->size;
|
||||
if (import != NULL) {
|
||||
c->size += import->size;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user