mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-25 05:27:00 +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) {
|
||||
struct html_stylesheet *sheets;
|
||||
struct content_html_object *objects;
|
||||
struct content_html_object *object;
|
||||
unsigned int count;
|
||||
|
||||
c = bw->current_content;
|
||||
|
||||
/* invalidate objects */
|
||||
objects = html_get_objects(c, &count);
|
||||
object = html_get_objects(c, &count);
|
||||
|
||||
for (i = 0; i != count; i++) {
|
||||
if (objects[i].content != NULL)
|
||||
content_invalidate_reuse_data(
|
||||
objects[i].content);
|
||||
for (; object != NULL; object = object->next) {
|
||||
if (object->content != NULL)
|
||||
content_invalidate_reuse_data(object->content);
|
||||
}
|
||||
|
||||
/* invalidate stylesheets */
|
||||
|
@ -115,7 +115,7 @@ bool save_complete_html(hlcache_handle *c, const char *path, bool index,
|
||||
struct save_complete_entry **list)
|
||||
{
|
||||
struct html_stylesheet *sheets;
|
||||
struct content_html_object *objects;
|
||||
struct content_html_object *object;
|
||||
char filename[256];
|
||||
unsigned int i, count;
|
||||
xmlDocPtr doc;
|
||||
@ -184,10 +184,10 @@ bool save_complete_html(hlcache_handle *c, const char *path, bool index,
|
||||
}
|
||||
|
||||
/* save objects */
|
||||
objects = html_get_objects(c, &count);
|
||||
object = html_get_objects(c, &count);
|
||||
|
||||
for (i = 0; i != count; i++) {
|
||||
hlcache_handle *obj = objects[i].content;
|
||||
for (; object != NULL; object = object->next) {
|
||||
hlcache_handle *obj = object->content;
|
||||
const char *obj_data;
|
||||
unsigned long obj_size;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user