mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 21:16:50 +03:00
Add some missing CONTENT_WEBPs. WebP images in HTML docs now display correctly.
svn path=/trunk/netsurf/; revision=10890
This commit is contained in:
parent
66ccdd3efa
commit
c052d534e7
@ -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},
|
||||
|
||||
|
@ -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
|
||||
|
@ -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 };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user