diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-06-26 14:43:38 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-06-26 14:43:38 +0000 |
commit | f87fc9dbb774906dd8c2db4d6094e14b0667fa74 (patch) | |
tree | ff864d3058d046cca4251031b5b35972f0759e8d /src/stylesheet.h | |
parent | 0ab2680de691045101f54517cbefa603f0eef3f9 (diff) | |
download | libcss-f87fc9dbb774906dd8c2db4d6094e14b0667fa74.tar.gz libcss-f87fc9dbb774906dd8c2db4d6094e14b0667fa74.tar.bz2 |
Nested block support.
svn path=/trunk/libcss/; revision=8014
Diffstat (limited to 'src/stylesheet.h')
-rw-r--r-- | src/stylesheet.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/stylesheet.h b/src/stylesheet.h index 4cb890e..1fab87e 100644 --- a/src/stylesheet.h +++ b/src/stylesheet.h @@ -111,7 +111,7 @@ typedef struct css_rule_selector { typedef struct css_rule_media { css_rule base; - uint32_t media; + uint64_t media; css_rule *first_child; css_rule *last_child; @@ -126,7 +126,7 @@ typedef struct css_rule_font_face { typedef struct css_rule_page { css_rule base; - css_selector **selectors; + css_selector *selector; css_style *style; } css_rule_page; @@ -213,9 +213,14 @@ css_error css_stylesheet_rule_set_charset(css_stylesheet *sheet, css_error css_stylesheet_rule_set_nascent_import(css_stylesheet *sheet, css_rule *rule, lwc_string *url, uint64_t media); -/** \todo registering other rule-type data with css_rules */ +css_error css_stylesheet_rule_set_media(css_stylesheet *sheet, + css_rule *rule, uint64_t media); + +css_error css_stylesheet_rule_set_page_selector(css_stylesheet *sheet, + css_rule *rule, css_selector *sel); -css_error css_stylesheet_add_rule(css_stylesheet *sheet, css_rule *rule); +css_error css_stylesheet_add_rule(css_stylesheet *sheet, css_rule *rule, + css_rule *parent); css_error css_stylesheet_remove_rule(css_stylesheet *sheet, css_rule *rule); #endif |