diff options
author | James Bursa <james@netsurf-browser.org> | 2006-12-31 23:47:17 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2006-12-31 23:47:17 +0000 |
commit | d117eb452763e1da14c89b9a5379285b56d6ad78 (patch) | |
tree | 137186df11689bc8ff7c9349a0910a74cd89c77a /render/html.c | |
parent | 3d09fed0af65ba1dc295573ecd7bf9385aec5186 (diff) | |
download | netsurf-d117eb452763e1da14c89b9a5379285b56d6ad78.tar.gz netsurf-d117eb452763e1da14c89b9a5379285b56d6ad78.tar.bz2 |
Stop animated images rendering for hidden or fallback boxes.
svn path=/trunk/netsurf/; revision=3128
Diffstat (limited to 'render/html.c')
-rw-r--r-- | render/html.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/render/html.c b/render/html.c index ddf097cb3..1e50a77fb 100644 --- a/render/html.c +++ b/render/html.c @@ -503,7 +503,7 @@ bool html_head(struct content *c, xmlNode *head) for (node = head->children; node != 0; node = node->next) { if (node->type != XML_ELEMENT_NODE) continue; - + LOG(("Node: %s", node->name)); if (!c->title && strcmp(node->name, "title") == 0) { xmlChar *title = xmlNodeGetContent(node); @@ -1141,6 +1141,8 @@ void html_object_callback(content_msg msg, struct content *object, break; case CONTENT_MSG_REDRAW: + if (!box_visible(box)) + break; box_coords(box, &x, &y); if (object == data.redraw.object) { data.redraw.x = data.redraw.x * |