diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2010-10-16 15:26:28 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2010-10-16 15:26:28 +0000 |
commit | c052d534e7d9485c4ce534f4286c56154ad7f247 (patch) | |
tree | 79a88d2f39cfc428d53f157da8520728d2870351 | |
parent | 66ccdd3efa97a42d3bb1ae2766c6826afc9ca7e6 (diff) | |
download | netsurf-c052d534e7d9485c4ce534f4286c56154ad7f247.tar.gz netsurf-c052d534e7d9485c4ce534f4286c56154ad7f247.tar.bz2 |
Add some missing CONTENT_WEBPs. WebP images in HTML docs now display correctly.
svn path=/trunk/netsurf/; revision=10890
-rw-r--r-- | desktop/tree_url_node.c | 3 | ||||
-rw-r--r-- | render/box.c | 3 | ||||
-rw-r--r-- | render/box_construct.c | 3 |
3 files changed, 9 insertions, 0 deletions
diff --git a/desktop/tree_url_node.c b/desktop/tree_url_node.c index 3bc9f90fc..86ab8b50a 100644 --- a/desktop/tree_url_node.c +++ b/desktop/tree_url_node.c @@ -90,6 +90,9 @@ struct icon_entry icon_table[] = { #ifdef WITH_NS_SVG {CONTENT_SVG, NULL}, #endif +#ifdef WITH_WEBP + {CONTENT_WEBP, NULL}, +#endif {CONTENT_UNKNOWN, NULL}, /* this serves as a sentinel */ diff --git a/render/box.c b/render/box.c index 6be898057..635bcbb3b 100644 --- a/render/box.c +++ b/render/box.c @@ -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 diff --git a/render/box_construct.c b/render/box_construct.c index e214edfa6..a241dde43 100644 --- a/render/box_construct.c +++ b/render/box_construct.c @@ -81,6 +81,9 @@ static const content_type image_types[] = { #ifdef WITH_ARTWORKS CONTENT_ARTWORKS, #endif +#ifdef WITH_WEBP + CONTENT_WEBP, +#endif CONTENT_UNKNOWN }; /* the strings are not important, since we just compare the pointers */ |