mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Invalidate a bit more aggressively when a pseudo-element matches, in order to also invalidate the cached pseudo-styles on the parent
This should probably be fine. If it becomes a perf issue somehow we can implement the RESTYLE_PSEUDOS hint or what not. Differential Revision: https://phabricator.services.mozilla.com/D108338
This commit is contained in:
parent
1be19485bb
commit
ed19da405f
2 changed files with 31 additions and 75 deletions
|
@ -158,10 +158,10 @@ impl<'a, 'b: 'a, E: 'a> InvalidationProcessor<'a, E>
|
|||
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 {
|
||||
/// We need to invalidate style on pseudo-elements, in order to process
|
||||
/// changes that could otherwise end up in ::before or ::after content being
|
||||
/// generated, and invalidate lazy pseudo caches.
|
||||
fn invalidates_on_pseudo_element(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue