LibWeb: Make hit testing return a { paintable, offset }

Everything related to hit testing is better off using the painting tree.
The thing being mousemoved over is a paintable, so let's hand that out
directly instead of the corresponding layout node.
This commit is contained in:
Andreas Kling 2022-03-10 22:58:19 +01:00
commit f017c1c064
Notes: sideshowbarker 2024-07-17 17:34:37 +09:00
5 changed files with 46 additions and 49 deletions

View file

@ -27,7 +27,7 @@ enum class LayoutMode {
};
struct HitTestResult {
RefPtr<Node> layout_node;
RefPtr<Painting::Paintable> paintable;
int index_in_node { 0 };
enum InternalPosition {