summaryrefslogtreecommitdiff
path: root/render/html.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2013-02-24 13:15:05 +0000
committerVincent Sanders <vince@kyllikki.org>2013-02-24 16:08:37 +0000
commitcc7f45898bdde2793ee17f99ea4cf058250a16b5 (patch)
tree9077addadd48f6a665fe8b0cae56bbbd69867756 /render/html.h
parentbba74b7a0b414809e29d8b19978db1996a8822ac (diff)
downloadnetsurf-cc7f45898bdde2793ee17f99ea4cf058250a16b5.tar.gz
netsurf-cc7f45898bdde2793ee17f99ea4cf058250a16b5.tar.bz2
refactor stylesheet handling to separate object from within html rendering
Diffstat (limited to 'render/html.h')
-rw-r--r--render/html.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/render/html.h b/render/html.h
index 6920fa8c7..97899f136 100644
--- a/render/html.h
+++ b/render/html.h
@@ -182,8 +182,17 @@ struct content_html_frames *html_get_frameset(struct hlcache_handle *h);
struct content_html_iframe *html_get_iframe(struct hlcache_handle *h);
nsurl *html_get_base_url(struct hlcache_handle *h);
const char *html_get_base_target(struct hlcache_handle *h);
+
+/**
+ * Retrieve stylesheets used by HTML document
+ *
+ * \param h Content to retrieve stylesheets from
+ * \param n Pointer to location to receive number of sheets
+ * \return Pointer to array of stylesheets
+ */
struct html_stylesheet *html_get_stylesheets(struct hlcache_handle *h,
unsigned int *n);
+
struct content_html_object *html_get_objects(struct hlcache_handle *h,
unsigned int *n);
bool html_get_id_offset(struct hlcache_handle *h, lwc_string *frag_id,