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 /Makefile.am | |
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 'Makefile.am')
0 files changed, 0 insertions, 0 deletions