LibWeb: Reduce paintable tree traversals during hit-testing

By storing a list of positioned and floating descendants within the
stacking context tree node, we can eliminate the need for costly
paintable tree traversals during hit-testing.

This optimization results in hit-testing being 2 to 2.5 times faster
on https://ziglang.org/documentation/master/
This commit is contained in:
Aliaksandr Kalenik 2024-03-01 11:54:44 +01:00 committed by Andreas Kling
commit 2764966ccc
Notes: sideshowbarker 2024-07-17 04:01:41 +09:00
5 changed files with 95 additions and 77 deletions

View file

@ -0,0 +1,6 @@
1 2 <DIV id="aa" >
<DIV id="a" >
<DIV id="bb" >
<DIV id="b" >
<DIV id="d" >
<DIV id="container" >