style: Add a way to skip the "invalidation on eager pseudo invalidates self" bit.

This commit is contained in:
Emilio Cobos Álvarez 2017-10-12 17:55:38 +02:00
parent ecdb10ef5c
commit 9034e6a732
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 12 additions and 1 deletions

View file

@ -57,6 +57,11 @@ impl<E> InvalidationProcessor<E> for StateAndAttrInvalidationProcessor
where
E: TElement,
{
/// We need to invalidate style on an eager pseudo-element, in order to
/// process changes that could otherwise end up in ::before or ::after
/// content being generated.
fn invalidates_on_eager_pseudo_element(&self) -> bool { true }
fn collect_invalidations(
&self,
element: E,