diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2011-10-07 18:12:47 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2011-10-07 18:12:47 +0000 |
commit | 230779848e22f5d185cbeb0ccaae0c16cbc5836c (patch) | |
tree | 414dc368828574374d85553490daa23dd53e1bd6 /image/image_cache.c | |
parent | 52ad2c1e2523b28aa5363656fbbef20e97665cce (diff) | |
download | netsurf-230779848e22f5d185cbeb0ccaae0c16cbc5836c.tar.gz netsurf-230779848e22f5d185cbeb0ccaae0c16cbc5836c.tar.bz2 |
metadata links stored in contents
browser uses metadata links for favicons
svn path=/trunk/netsurf/; revision=12977
Diffstat (limited to 'image/image_cache.c')
-rw-r--r-- | image/image_cache.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/image/image_cache.c b/image/image_cache.c index 9a478a605..32fe74571 100644 --- a/image/image_cache.c +++ b/image/image_cache.c @@ -283,7 +283,7 @@ static void image_cache__background_update(void *p) } /* exported interface documented in image_cache.h */ -struct bitmap *image_cache_get_bitmap(struct content *c) +struct bitmap *image_cache_get_bitmap(const struct content *c) { struct image_cache_entry_s *centry; @@ -576,14 +576,7 @@ void image_cache_destroy(struct content *content) void *image_cache_get_internal(const struct content *c, void *context) { - struct image_cache_entry_s *centry; - - centry = image_cache__find(c); - if (centry == NULL) { - return NULL; - } - - return centry->bitmap; + return image_cache_get_bitmap(c); } content_type image_cache_content_type(void) |