summaryrefslogtreecommitdiff
path: root/render/html.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2012-07-27 13:53:14 +0100
committerVincent Sanders <vince@netsurf-browser.org>2012-07-30 22:54:14 +0100
commit06608c1bf0b1046520e184fdc063c83ead2184af (patch)
tree127f0eab57b29a81edb130c464256913ba433c4a /render/html.h
parent4f0e70b50d2446ed3ba14bd51d61c80088226d91 (diff)
downloadnetsurf-06608c1bf0b1046520e184fdc063c83ead2184af.tar.gz
netsurf-06608c1bf0b1046520e184fdc063c83ead2184af.tar.bz2
extend script enumeration to include asyncronous and deferred scripts
Diffstat (limited to 'render/html.h')
-rw-r--r--render/html.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/render/html.h b/render/html.h
index 64548f810..dcbc1a3ba 100644
--- a/render/html.h
+++ b/render/html.h
@@ -66,10 +66,13 @@ struct html_stylesheet {
*/
struct html_script {
/** Type of script */
- enum html_script_type { HTML_SCRIPT_EXTERNAL, HTML_SCRIPT_INTERNAL } type;
+ enum html_script_type { HTML_SCRIPT_INLINE,
+ HTML_SCRIPT_SYNC,
+ HTML_SCRIPT_DEFER,
+ HTML_SCRIPT_ASYNC } type;
union {
- struct hlcache_handle *external;
- struct dom_string *internal;
+ struct hlcache_handle *handle;
+ struct dom_string *string;
} data; /**< Script data */
struct dom_string *mimetype;
struct dom_string *encoding;
@@ -175,9 +178,9 @@ 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);
-struct html_stylesheet *html_get_stylesheets(struct hlcache_handle *h,
+struct html_stylesheet *html_get_stylesheets(struct hlcache_handle *h,
unsigned int *n);
-struct content_html_object *html_get_objects(struct hlcache_handle *h,
+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,
int *x, int *y);