mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-10 00:52:28 +02:00
LayoutText can't simply rely on its LayoutNode::rect() for hit testing. Instead, we have to iterate over the individual runs and see if we're hitting any of them. Also, LayoutNode::hit_test() now always recurses into children, since we can't trust the rect() to tell the truth (inline rects are wrong.)
8.4 KiB
8.4 KiB