mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 12:12:35 +03:00
Add accessor for quirks
svn path=/trunk/netsurf/; revision=10415
This commit is contained in:
parent
bf27f667c9
commit
be3b246eab
@ -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
|
||||
*
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user