mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
Introduce optimization that determines if one node is preceding, following, ancestor or descdendant of another node by comparing ancestors chains of both nodes which is much cheaper than using Node::is_before() that can walk whole subtree in the worst case.
83 KiB
83 KiB