mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:17:35 +00:00
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:
parent
9c6c3fe0d8
commit
2764966ccc
5 changed files with 95 additions and 77 deletions
|
@ -0,0 +1,6 @@
|
|||
1 2 <DIV id="aa" >
|
||||
<DIV id="a" >
|
||||
<DIV id="bb" >
|
||||
<DIV id="b" >
|
||||
<DIV id="d" >
|
||||
<DIV id="container" >
|
Loading…
Add table
Add a link
Reference in a new issue