mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-25 21:46:57 +03:00
Fix stupid
svn path=/trunk/netsurf/; revision=11976
This commit is contained in:
parent
74f108ee4d
commit
b175b0ddf8
@ -913,18 +913,17 @@ void browser_window_reload(struct browser_window *bw, bool all)
|
|||||||
|
|
||||||
if (all && content_get_type(bw->current_content) == CONTENT_HTML) {
|
if (all && content_get_type(bw->current_content) == CONTENT_HTML) {
|
||||||
struct html_stylesheet *sheets;
|
struct html_stylesheet *sheets;
|
||||||
struct content_html_object *objects;
|
struct content_html_object *object;
|
||||||
unsigned int count;
|
unsigned int count;
|
||||||
|
|
||||||
c = bw->current_content;
|
c = bw->current_content;
|
||||||
|
|
||||||
/* invalidate objects */
|
/* invalidate objects */
|
||||||
objects = html_get_objects(c, &count);
|
object = html_get_objects(c, &count);
|
||||||
|
|
||||||
for (i = 0; i != count; i++) {
|
for (; object != NULL; object = object->next) {
|
||||||
if (objects[i].content != NULL)
|
if (object->content != NULL)
|
||||||
content_invalidate_reuse_data(
|
content_invalidate_reuse_data(object->content);
|
||||||
objects[i].content);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* invalidate stylesheets */
|
/* invalidate stylesheets */
|
||||||
|
@ -115,7 +115,7 @@ bool save_complete_html(hlcache_handle *c, const char *path, bool index,
|
|||||||
struct save_complete_entry **list)
|
struct save_complete_entry **list)
|
||||||
{
|
{
|
||||||
struct html_stylesheet *sheets;
|
struct html_stylesheet *sheets;
|
||||||
struct content_html_object *objects;
|
struct content_html_object *object;
|
||||||
char filename[256];
|
char filename[256];
|
||||||
unsigned int i, count;
|
unsigned int i, count;
|
||||||
xmlDocPtr doc;
|
xmlDocPtr doc;
|
||||||
@ -184,10 +184,10 @@ bool save_complete_html(hlcache_handle *c, const char *path, bool index,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* save objects */
|
/* save objects */
|
||||||
objects = html_get_objects(c, &count);
|
object = html_get_objects(c, &count);
|
||||||
|
|
||||||
for (i = 0; i != count; i++) {
|
for (; object != NULL; object = object->next) {
|
||||||
hlcache_handle *obj = objects[i].content;
|
hlcache_handle *obj = object->content;
|
||||||
const char *obj_data;
|
const char *obj_data;
|
||||||
unsigned long obj_size;
|
unsigned long obj_size;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user