Files
ladybird/Userland/Libraries/LibWeb/DOM
Andreas Kling 302752d092 LibWeb: Ignore layout/paint invalidations in subtree under display:none
The entire subtree of an element with display:none is irrelevant for
purposes of layout and/or paint invalidation.

We now simply ignore invalidation triggers inside such subtrees.

This avoids a *lot* of redundant busywork when running CSS animations
inside not-even-rendered content. As an example, this avoids repainting
YouTube embeds repeatedly due to animating-but-hidden progress
indicators.

Note that the subtree *root* (i.e the `display:none` element itself)
still gets to trigger invalidation, since we may need to rebuild the
layout tree when the `display` property changes.
2024-01-04 21:19:32 +01:00
..
2023-11-11 08:51:51 +01:00
2023-11-11 08:51:51 +01:00
2023-11-11 08:51:51 +01:00
2023-11-11 08:51:51 +01:00
2023-11-11 08:51:51 +01:00
2023-11-11 08:51:51 +01:00
2023-11-11 08:51:51 +01:00