summaryrefslogtreecommitdiff
path: root/content/content.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-09-03 09:27:42 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-09-03 09:27:42 +0000
commit9ee4f6146e06f6d142cc98a2bc600a49b4a3ddc6 (patch)
tree08e36656c3bdc25b57021fdeb86cdc65901495ed /content/content.c
parent4539f8836e30b16982efab4e7c70191af171e7d5 (diff)
downloadnetsurf-9ee4f6146e06f6d142cc98a2bc600a49b4a3ddc6.tar.gz
netsurf-9ee4f6146e06f6d142cc98a2bc600a49b4a3ddc6.tar.bz2
Remove mime_type parameter from content handler content_type callback API
svn path=/trunk/netsurf/; revision=12704
Diffstat (limited to 'content/content.c')
-rw-r--r--content/content.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/content/content.c b/content/content.c
index db186e8cc..4c87f0eb5 100644
--- a/content/content.c
+++ b/content/content.c
@@ -733,7 +733,7 @@ content_type content_get_type(hlcache_handle *h)
if (c == NULL)
return CONTENT_NONE;
- return c->handler->type(c->mime_type);
+ return c->handler->type();
}
/**
@@ -977,7 +977,7 @@ struct bitmap *content__get_bitmap(struct content *c)
if ((c != NULL) &&
(c->handler != NULL) &&
(c->handler->type != NULL) &&
- (c->handler->type(NULL) == CONTENT_IMAGE) &&
+ (c->handler->type() == CONTENT_IMAGE) &&
(c->handler->get_internal != NULL) ) {
bitmap = c->handler->get_internal(c, NULL);
}
@@ -1012,7 +1012,7 @@ bool content__get_opaque(struct content *c)
if ((c != NULL) &&
(c->handler != NULL) &&
(c->handler->type != NULL) &&
- (c->handler->type(NULL) == CONTENT_IMAGE) &&
+ (c->handler->type() == CONTENT_IMAGE) &&
(c->handler->get_internal != NULL) ) {
struct bitmap *bitmap = NULL;
bitmap = c->handler->get_internal(c, NULL);