diff options
author | Robert Staudinger <robsta@gnome.org> | 2009-08-07 13:16:51 +0200 |
---|---|---|
committer | Robert Staudinger <robsta@gnome.org> | 2009-08-07 13:16:51 +0200 |
commit | 03780dee6396a96fc3489f433838da998c89c4fe (patch) | |
tree | 4d04835f24b8bdfd9b9913ae9b7e36931e8093c8 /ccss-doc/ccss-sections.txt | |
parent | 6cdc8e793ddda1fcc629954497c7cb8957e8d9c8 (diff) |
[stylesheet] Implement ccss_stylesheet_unload() to unload css parts.
Every selector now stores a descriptor of the CSS file or buffer
it originates from. For unloading a file or buffer the internal
stylesheet representation is iterated and all selectors and blocks
with matching descriptors are destroyed.
This also requires an update to ccss_node_get_style(), the descriptor
for the inline style is passed to the callback, which the consumer must
store in order to unload the inline style later on.
The above change in turn obsoletes ccss_stylesheet_invalidate_node()
since all unloading now uses a consistent API.
Also fix a related memory leak, selectors and -groups would be left
over when destroying a stylesheet.
Diffstat (limited to 'ccss-doc/ccss-sections.txt')
-rw-r--r-- | ccss-doc/ccss-sections.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ccss-doc/ccss-sections.txt b/ccss-doc/ccss-sections.txt index 2ed1f1f..c3c0a05 100644 --- a/ccss-doc/ccss-sections.txt +++ b/ccss-doc/ccss-sections.txt @@ -68,11 +68,12 @@ ccss_stylesheet_precedence_t ccss_stylesheet_destroy ccss_stylesheet_reference ccss_stylesheet_get_reference_count +ccss_stylesheet_add_from_buffer ccss_stylesheet_add_from_file ccss_stylesheet_foreach -ccss_stylesheet_invalidate_node ccss_stylesheet_query_type ccss_stylesheet_query +ccss_stylesheet_unload ccss_stylesheet_dump </SECTION> |