Add some missing CONTENT_WEBPs. WebP images in HTML docs now display correctly.

svn path=/trunk/netsurf/; revision=10890
This commit is contained in:
Chris Young 2010-10-16 15:26:28 +00:00
parent 66ccdd3efa
commit c052d534e7
3 changed files with 9 additions and 0 deletions

View File

@ -89,6 +89,9 @@ struct icon_entry icon_table[] = {
#endif
#ifdef WITH_NS_SVG
{CONTENT_SVG, NULL},
#endif
#ifdef WITH_WEBP
{CONTENT_WEBP, NULL},
#endif
{CONTENT_UNKNOWN, NULL},

View File

@ -1160,6 +1160,9 @@ bool box_duplicate_main_tree(struct box *box, struct content *c, int *count)
content_get_type(box->object) == CONTENT_JNG ||
content_get_type(box->object) == CONTENT_MNG ||
#endif
#ifdef WITH_WEBP
content_get_type(box->object) == CONTENT_WEBP ||
#endif
#if defined(WITH_SPRITE) || defined(WITH_NSSPRITE)
content_get_type(box->object) == CONTENT_SPRITE ||
#endif

View File

@ -80,6 +80,9 @@ static const content_type image_types[] = {
#endif
#ifdef WITH_ARTWORKS
CONTENT_ARTWORKS,
#endif
#ifdef WITH_WEBP
CONTENT_WEBP,
#endif
CONTENT_UNKNOWN };