summaryrefslogtreecommitdiff
path: root/render/html.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2004-07-30 23:40:01 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2004-07-30 23:40:01 +0000
commit8e650e3e39771431267aa6275d596516d1e34abb (patch)
tree89b376e980f7ba32abd4d2df53c676f1290af803 /render/html.h
parentd601aa71887b45b4fbd1c1c86f5cfe2971100216 (diff)
downloadnetsurf-8e650e3e39771431267aa6275d596516d1e34abb.tar.gz
netsurf-8e650e3e39771431267aa6275d596516d1e34abb.tar.bz2
[project @ 2004-07-30 23:40:00 by jmb]
Rework stylesheet fetching code to remove dependence on magic numbers (now uses values defined in html.h) Make ad blocking optional. svn path=/import/netsurf/; revision=1168
Diffstat (limited to 'render/html.h')
-rw-r--r--render/html.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/render/html.h b/render/html.h
index 4dc1ca2a4..bd876a902 100644
--- a/render/html.h
+++ b/render/html.h
@@ -26,6 +26,12 @@ struct content;
struct object_params;
struct imagemap;
+/* entries in stylesheet_content */
+#define STYLESHEET_BASE 0 /* base style sheet */
+#define STYLESHEET_ADBLOCK 1 /* adblocking stylesheet */
+#define STYLESHEET_STYLE 2 /* <style> elements (not cached) */
+#define STYLESHEET_START 3 /* start of document stylesheets */
+
/** Data specific to CONTENT_HTML. */
struct content_html_data {
htmlParserCtxt *parser; /**< HTML parser context. */
@@ -41,8 +47,7 @@ struct content_html_data {
/** Number of entries in stylesheet_content. */
unsigned int stylesheet_count;
- /** Stylesheets. Each may be 0. Stylesheet 0 is the base style sheet,
- * stylesheet 1 is any <style> elements (not cached). */
+ /** Stylesheets. Each may be 0. */
struct content **stylesheet_content;
struct css_style *style; /**< Base style. */