summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-11-05 15:24:50 (GMT)
committer John Mark Bell <jmb@netsurf-browser.org>2011-11-05 15:24:50 (GMT)
commit421872ffc8e4d36e6fab6c69181642706b4817d6 (patch)
treecb0d1ca1a06f9a94f82d48e41d0c84fbbcbc5654
parentdc00fb391c96b5ec3ad0bb70789465bca50f45ff (diff)
downloadlibcss-421872ffc8e4d36e6fab6c69181642706b4817d6.tar.gz
libcss-421872ffc8e4d36e6fab6c69181642706b4817d6.tar.bz2
Fix regression introduced by reject cache: do not cache failure to match multi-detailed selectors
svn path=/trunk/libcss/; revision=13126
-rw-r--r--src/select/select.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/select/select.c b/src/select/select.c
index 47aca20..cc6b646 100644
--- a/src/select/select.c
+++ b/src/select/select.c
@@ -1145,6 +1145,7 @@ static void update_reject_cache(css_select_state *state,
N_ELEMENTS(state->reject_cache) ||
comb != CSS_COMBINATOR_ANCESTOR ||
next_detail == NULL ||
+ next_detail->next != 0 ||
(next_detail->type != CSS_SELECTOR_CLASS &&
next_detail->type != CSS_SELECTOR_ID))
return;