summaryrefslogtreecommitdiff
path: root/src/stylesheet.h
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@netsurf-browser.org>2010-03-28 00:13:41 +0000
committerDaniel Silverstone <dsilvers@netsurf-browser.org>2010-03-28 00:13:41 +0000
commit87d7c3d3dee8d22af977e346ba1c139131152077 (patch)
treea47971e8becc97f9ca06c60a6905c8bfba0693c4 /src/stylesheet.h
parent80cfe125983eb126a9f8afd974196cf0bf347877 (diff)
downloadlibcss-87d7c3d3dee8d22af977e346ba1c139131152077.tar.gz
libcss-87d7c3d3dee8d22af977e346ba1c139131152077.tar.bz2
Make libcss suitable for the new libwapcaplet behaviour.
svn path=/trunk/libcss/; revision=10168
Diffstat (limited to 'src/stylesheet.h')
-rw-r--r--src/stylesheet.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/stylesheet.h b/src/stylesheet.h
index 8072686..b708257 100644
--- a/src/stylesheet.h
+++ b/src/stylesheet.h
@@ -1,7 +1,7 @@
/*
* This file is part of LibCSS.
* Licensed under the MIT License,
- * http://www.opensource.org/licenses/mit-license.php
+ * http://www.opensource.org/licenses/mit-license.php
* Copyright 2008 John-Mark Bell <jmb@netsurf-browser.org>
*/
@@ -53,8 +53,8 @@ typedef struct css_selector_detail {
lwc_string *value; /**< Interned value, or NULL */
unsigned int type : 4, /**< Type of selector */
- comb : 2, /**< Type of combinator */
- next : 1; /**< Another selector detail
+ comb : 2, /**< Type of combinator */
+ next : 1; /**< Another selector detail
* follows */
} css_selector_detail;
@@ -95,9 +95,9 @@ struct css_rule {
css_rule *prev; /**< previous in list */
unsigned int type : 4, /**< css_rule_type */
- index : 16, /**< index in sheet */
- items : 8, /**< # items in rule */
- ptype : 1; /**< css_rule_parent_type */
+ index : 16, /**< index in sheet */
+ items : 8, /**< # items in rule */
+ ptype : 1; /**< css_rule_parent_type */
};
typedef struct css_rule_selector {
@@ -182,7 +182,8 @@ struct css_stylesheet {
css_error css_stylesheet_style_create(css_stylesheet *sheet, uint32_t len,
css_style **style);
-css_error css_stylesheet_style_destroy(css_stylesheet *sheet, css_style *style);
+css_error css_stylesheet_style_destroy(css_stylesheet *sheet, css_style *style,
+ bool suppress_bytecode_cleanup);
css_error css_stylesheet_selector_create(css_stylesheet *sheet,
lwc_string *name, css_selector **selector);