summaryrefslogtreecommitdiff
path: root/src/stylesheet.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2008-09-25 08:13:30 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2008-09-25 08:13:30 +0000
commitab2a3c493f8f6430ad96f7637c842b666c29a9f4 (patch)
treec56229e077a10384d675b5a5f27beecc8fb74910 /src/stylesheet.h
parent1e5dee524f9fbff6c811dba66ff404882b02b900 (diff)
downloadlibcss-ab2a3c493f8f6430ad96f7637c842b666c29a9f4.tar.gz
libcss-ab2a3c493f8f6430ad96f7637c842b666c29a9f4.tar.bz2
Create a parser instance for a stylesheet. Also create a level-specific frontend. This probably wants reworking as we don't really want to be switching on the language level every time we want to interact with the parser frontend.
svn path=/trunk/libcss/; revision=5437
Diffstat (limited to 'src/stylesheet.h')
-rw-r--r--src/stylesheet.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/stylesheet.h b/src/stylesheet.h
index 5968083..ea1c9c4 100644
--- a/src/stylesheet.h
+++ b/src/stylesheet.h
@@ -15,6 +15,8 @@
#include <libcss/stylesheet.h>
#include <libcss/types.h>
+#include "parse/parse.h"
+
typedef struct css_rule css_rule;
typedef struct css_selector css_selector;
typedef struct css_style css_style;
@@ -138,6 +140,10 @@ struct css_stylesheet {
css_import_handler import; /**< Import callback */
void *import_pw; /**< Import handler data */
+ css_language_level level; /**< Language level of sheet */
+ css_parser *parser; /**< Core parser for sheet */
+ void *parser_frontend; /**< Frontend parser */
+
css_alloc alloc; /**< Allocation function */
void *pw; /**< Private word */
};