Fix stupid

svn path=/trunk/netsurf/; revision=11976
This commit is contained in:
John Mark Bell 2011-03-12 17:47:46 +00:00
parent 74f108ee4d
commit b175b0ddf8
2 changed files with 9 additions and 10 deletions

View File

@ -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 */

View File

@ -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;