cssselector: Rework how we handle the bloom filter
authorBenjamin Otte <otte@redhat.com>
Wed, 29 Jan 2020 03:20:47 +0000 (04:20 +0100)
committerBenjamin Otte <otte@redhat.com>
Wed, 29 Jan 2020 03:20:47 +0000 (04:20 +0100)
commit5e3cbff8d23a26ae5b09d7e81507048ec4e69764
treec9f2777827c7b2bcb6f29ec6ba2cbff9839474c3
parentc6158f1684418d9796aecf871a16c345ba3caaa0
cssselector: Rework how we handle the bloom filter

Instead of foreaching through all the previous selectors every time we
bloom-filter, just bloom-filter the current element and return a special
value if that filter fails (FALSE). If that happens, don't try
filter-matching more nodes in the caller as we know it's an abort.
gtk/gtkcssselector.c