From d0847048854adfe7c284d8052ce6a01056cdb161 Mon Sep 17 00:00:00 2001 From: Martin Owens Date: Thu, 9 Jan 2014 14:23:43 -0500 Subject: For bug #1267552 Allow pseudo class matches to continue matching the rest of a css statement instead of being sufficiant. Fixed bugs: - https://launchpad.net/bugs/1267552 (bzr r12905) --- src/libcroco/cr-sel-eng.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/libcroco/cr-sel-eng.c b/src/libcroco/cr-sel-eng.c index 77bf5b177..0eba2b403 100644 --- a/src/libcroco/cr-sel-eng.c +++ b/src/libcroco/cr-sel-eng.c @@ -512,11 +512,11 @@ additional_selector_matches_node (CRSelEng * a_this, continue ; } else if (cur_add_sel->type == PSEUDO_CLASS_ADD_SELECTOR && cur_add_sel->content.pseudo) { - if (pseudo_class_add_sel_matches_node + if (!pseudo_class_add_sel_matches_node (a_this, cur_add_sel, a_node)) { - return TRUE; + return FALSE; } - return FALSE; + continue ; } } if (evaluated == TRUE) -- cgit v1.2.3