Fixed a bug where I was failing to filter out pseudo elements during walking.

This commit is contained in:
Tom Alexander 2020-06-07 00:29:51 -04:00
parent 669a698575
commit 09d015346c
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -44,7 +44,7 @@ fn get_first_non_pseudo_element<'a>(
.iter()
.rev()
.filter(|b| {
std::borrow::Borrow::<dyn IntoContextElement + 'a>::borrow(*b).is_pseudo_element()
!std::borrow::Borrow::<dyn IntoContextElement + 'a>::borrow(*b).is_pseudo_element()
})
.next()
}