summaryrefslogtreecommitdiff
path: root/src/stylesheet.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2008-12-01 15:24:24 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2008-12-01 15:24:24 +0000
commita7229c649b98f1c5f5ea97c486b03dcc814c16ea (patch)
treeeea4daca20a26875a8ae784b3e95387383469b55 /src/stylesheet.h
parent7d11de5da22b343716734be3be1810cb3163a696 (diff)
downloadlibcss-a7229c649b98f1c5f5ea97c486b03dcc814c16ea.tar.gz
libcss-a7229c649b98f1c5f5ea97c486b03dcc814c16ea.tar.bz2
Given that we're going to be copying selector details, anyway, it seems pointless to create objects on the heap which can equally well be on the stack, given the shortness of their lifetime.
svn path=/trunk/libcss/; revision=5863
Diffstat (limited to 'src/stylesheet.h')
-rw-r--r--src/stylesheet.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/stylesheet.h b/src/stylesheet.h
index 9f9b21e..f32bbe3 100644
--- a/src/stylesheet.h
+++ b/src/stylesheet.h
@@ -185,15 +185,13 @@ css_error css_stylesheet_selector_create(css_stylesheet *sheet,
css_error css_stylesheet_selector_destroy(css_stylesheet *sheet,
css_selector *selector);
-css_error css_stylesheet_selector_detail_create(css_stylesheet *sheet,
+css_error css_stylesheet_selector_detail_init(css_stylesheet *sheet,
css_selector_type type, const parserutils_hash_entry *name,
const parserutils_hash_entry *value,
- css_selector_detail **detail);
-css_error css_stylesheet_selector_detail_destroy(css_stylesheet *sheet,
css_selector_detail *detail);
css_error css_stylesheet_selector_append_specific(css_stylesheet *sheet,
- css_selector **parent, css_selector_detail *specific);
+ css_selector **parent, const css_selector_detail *specific);
css_error css_stylesheet_selector_combine(css_stylesheet *sheet,
css_combinator type, css_selector *a, css_selector *b);