Author: jmb
Date: Mon Jan 31 16:30:02 2011
New Revision: 11568
URL:
http://source.netsurf-browser.org?rev=11568&view=rev
Log:
Place negated class and id selectors in the universal hash chain
Modified:
trunk/libcss/src/select/hash.c
Modified: trunk/libcss/src/select/hash.c
URL:
http://source.netsurf-browser.org/trunk/libcss/src/select/hash.c?rev=1156...
==============================================================================
--- trunk/libcss/src/select/hash.c (original)
+++ trunk/libcss/src/select/hash.c Mon Jan 31 16:30:02 2011
@@ -536,7 +536,8 @@
lwc_string *name = NULL;
do {
- if (detail->type == CSS_SELECTOR_CLASS) {
+ /* Ignore :not(.class) */
+ if (detail->type == CSS_SELECTOR_CLASS && detail->negate == 0) {
name = detail->name;
break;
}
@@ -562,7 +563,8 @@
lwc_string *name = NULL;
do {
- if (detail->type == CSS_SELECTOR_ID) {
+ /* Ignore :not(#id) */
+ if (detail->type == CSS_SELECTOR_ID && detail->negate == 0) {
name = detail->name;
break;
}