From be3b246eabef4573385b7af5bdb4b4e02529c485 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Fri, 16 Apr 2010 20:54:57 +0000 Subject: Add accessor for quirks svn path=/trunk/netsurf/; revision=10415 --- content/content.c | 18 ++++++++++++++++++ content/content.h | 1 + 2 files changed, 19 insertions(+) diff --git a/content/content.c b/content/content.c index 9ecc42810..dbb9588de 100644 --- a/content/content.c +++ b/content/content.c @@ -1341,6 +1341,24 @@ struct bitmap *content__get_bitmap(struct content *c) return c->bitmap; } + +/** + * Retrieve quirkiness of a content + * + * \param h Content to examine + * \return True if content is quirky, false otherwise + */ +bool content_get_quirks(hlcache_handle *h) +{ + struct content *c = hlcache_handle_get_content(h); + + if (c == NULL) + return false; + + return c->quirks; +} + + /** * Return whether a content is currently locked * diff --git a/content/content.h b/content/content.h index fbdb93454..652409533 100644 --- a/content/content.h +++ b/content/content.h @@ -146,6 +146,7 @@ const char *content_get_source_data(struct hlcache_handle *c, void content_invalidate_reuse_data(struct hlcache_handle *c); const char *content_get_refresh_url(struct hlcache_handle *c); struct bitmap *content_get_bitmap(struct hlcache_handle *c); +bool content_get_quirks(struct hlcache_handle *c); bool content_is_locked(struct hlcache_handle *h); -- cgit v1.2.3