ladybird/Userland
Sam Atkins 7daf5cdaff LibWeb: Invalidate layout if pseudo-element style changes
Pseudo-elements' style is only computed while building the layout tree.
This meant that previously, they would not have their style recomputed
in some cases. (Such as when :hover is applied to an ancestor.)

Now, when recomputing an element's style, we also return a full
invalidation if one or more pseudo-elements would exist either before or
after style recomputation.

This heuristic produces some false positives, but no false negatives.
Because pseudo-elements' style is computed during layout building, any
computation done here is then thrown away. So this approach minimises
the amount of wasted style computation. Plus it's simple, until we have
data on what approach would be faster.

This fixes the Acid2 nose becoming blue when the .nose div is hovered.
2024-07-30 09:45:45 +02:00
..
Libraries LibWeb: Invalidate layout if pseudo-element style changes 2024-07-30 09:45:45 +02:00
Services WebContent: Ignore invalid attributes set via the Inspector 2024-07-30 09:41:35 +02:00
Utilities Utilities/js: Make it possible to exit via two consecutive ^C's 2024-07-27 11:49:45 +01:00