summaryrefslogtreecommitdiff
path: root/src/stylesheet.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2008-10-22 11:50:57 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2008-10-22 11:50:57 +0000
commit13f918ea838c1cb971daf12b54fe68f39f798ba2 (patch)
treec0bd18b26ae608613a30f754c70f2eb03d13ecaf /src/stylesheet.h
parent815265e0c9426d3b7934557d893815297bb8a9bf (diff)
downloadlibcss-13f918ea838c1cb971daf12b54fe68f39f798ba2.tar.gz
libcss-13f918ea838c1cb971daf12b54fe68f39f798ba2.tar.bz2
Parse common part of declarations.
Stub out handlers for properties. svn path=/trunk/libcss/; revision=5620
Diffstat (limited to 'src/stylesheet.h')
-rw-r--r--src/stylesheet.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/stylesheet.h b/src/stylesheet.h
index 6c014e5..99af643 100644
--- a/src/stylesheet.h
+++ b/src/stylesheet.h
@@ -20,7 +20,11 @@
typedef struct css_rule css_rule;
typedef struct css_selector css_selector;
-typedef struct css_style css_style;
+
+typedef struct css_style {
+ uint32_t length; /**< Length, in bytes, of bytecode */
+ void *bytecode; /**< Pointer to bytecode */
+} css_style;
typedef enum css_selector_type {
CSS_SELECTOR_ELEMENT,
@@ -160,14 +164,13 @@ css_error css_stylesheet_selector_append_specific(css_stylesheet *sheet,
css_error css_stylesheet_selector_combine(css_stylesheet *sheet,
css_combinator type, css_selector *a, css_selector *b);
-/** \todo something about adding style declarations to a selector */
-
css_rule *css_stylesheet_rule_create(css_stylesheet *sheet, css_rule_type type);
void css_stylesheet_rule_destroy(css_stylesheet *sheet, css_rule *rule);
css_error css_stylesheet_rule_add_selector(css_stylesheet *sheet,
css_rule *rule, css_selector *selector);
+/** \todo something about adding style declarations to a rule */
/** \todo registering other rule-type data with css_rules */
css_error css_stylesheet_add_rule(css_stylesheet *sheet, css_rule *rule);