1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:07:36 +00:00

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
parent cb0c5390ff
commit f017c1c064
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 {