From 551c4e5bc7147f8eee1bb48cdd26bc83a66aa78a Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Wed, 29 Jul 2009 09:57:04 +0000 Subject: Change selector hash to segregate: 1) element selectors 2) universal selectors with class names 3) universal selectors with ids 4) universal selectors Only bother looking for matching selectors in 2 & 3 if the node being selected for has class names or an id, respectively. In theory, this should speed up style selection somewhat. svn path=/trunk/libcss/; revision=8882 --- include/libcss/select.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/libcss/select.h') diff --git a/include/libcss/select.h b/include/libcss/select.h index a3d18df..76bdcf5 100644 --- a/include/libcss/select.h +++ b/include/libcss/select.h @@ -26,6 +26,11 @@ enum css_pseudo_element { typedef struct css_select_handler { css_error (*node_name)(void *pw, void *node, lwc_context *dict, lwc_string **name); + css_error (*node_classes)(void *pw, void *node, + lwc_context *dict, lwc_string ***classes, + uint32_t *n_classes); + css_error (*node_id)(void *pw, void *node, + lwc_context *dict, lwc_string **id); css_error (*named_ancestor_node)(void *pw, void *node, lwc_string *name, void **ancestor); -- cgit v1.2.3