mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-24 19:32:07 +03:00
[project @ 2005-05-22 12:44:44 by bursa]
Fix crash when stylesheets fail to load. svn path=/import/netsurf/; revision=1730
This commit is contained in:
parent
ff74a126f7
commit
6bf7e4a318
@ -637,8 +637,9 @@ bool html_find_stylesheets(struct content *c, xmlNode *head)
|
||||
css_set_origin(c->data.html.stylesheet_content[
|
||||
STYLESHEET_STYLE], CSS_ORIGIN_AUTHOR);
|
||||
for (i = STYLESHEET_START; i != c->data.html.stylesheet_count; i++)
|
||||
css_set_origin(c->data.html.stylesheet_content[i],
|
||||
CSS_ORIGIN_AUTHOR);
|
||||
if (c->data.html.stylesheet_content[i])
|
||||
css_set_origin(c->data.html.stylesheet_content[i],
|
||||
CSS_ORIGIN_AUTHOR);
|
||||
|
||||
c->data.html.working_stylesheet = css_make_working_stylesheet(
|
||||
c->data.html.stylesheet_content,
|
||||
|
Loading…
Reference in New Issue
Block a user