diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2010-12-05 15:35:30 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2010-12-05 15:35:30 +0000 |
commit | 9ff129943ec479fa51b95e84b6e8c042a44363ae (patch) | |
tree | cd922f00182df62ccc1633ee435b83f521f2a8d0 /src/stylesheet.h | |
parent | 01d8e176628db2dc5a2a192ac7b097bd1998c8eb (diff) | |
download | libcss-9ff129943ec479fa51b95e84b6e8c042a44363ae.tar.gz libcss-9ff129943ec479fa51b95e84b6e8c042a44363ae.tar.bz2 |
Add string vector capability to stylesheet (r=jmb)
Move properties ready for split
svn path=/trunk/libcss/; revision=11005
Diffstat (limited to 'src/stylesheet.h')
-rw-r--r-- | src/stylesheet.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/stylesheet.h b/src/stylesheet.h index fbd76b0..e8feea9 100644 --- a/src/stylesheet.h +++ b/src/stylesheet.h @@ -178,6 +178,10 @@ struct css_stylesheet { css_allocator_fn alloc; /**< Allocation function */ void *pw; /**< Private word */ + + lwc_string **string_vector; /**< Bytecode string vector */ + uint32_t string_vector_l; /**< The string vector allocated length in entries */ + uint32_t string_vector_c; /**< The number of string vector entries used */ }; css_error css_stylesheet_style_create(css_stylesheet *sheet, uint32_t len, @@ -227,5 +231,9 @@ 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); +css_error css_stylesheet_string_get(css_stylesheet *sheet, uint32_t string_number, lwc_string **string); + +css_error css_stylesheet_string_add(css_stylesheet *sheet, lwc_string *string, uint32_t *string_number); + #endif |