summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Layout/Node.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-03-10 22:58:19 +0100
committerAndreas Kling <kling@serenityos.org>2022-03-11 00:21:49 +0100
commitf017c1c064e30399a569dde21051b377ab91528d (patch)
tree03dff8dc884ccaa1a8e3a2c49cb086ee0ebbc521 /Userland/Libraries/LibWeb/Layout/Node.h
parentcb0c5390ff9a0189ae79cfd690f6c089ba73c4a7 (diff)
downloadserenity-f017c1c064e30399a569dde21051b377ab91528d.zip
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.
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/Node.h')
-rw-r--r--Userland/Libraries/LibWeb/Layout/Node.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/Node.h b/Userland/Libraries/LibWeb/Layout/Node.h
index e25fe1e0d1..eb1b9f1012 100644
--- a/Userland/Libraries/LibWeb/Layout/Node.h
+++ b/Userland/Libraries/LibWeb/Layout/Node.h
@@ -27,7 +27,7 @@ enum class LayoutMode {
};
struct HitTestResult {
- RefPtr<Node> layout_node;
+ RefPtr<Painting::Paintable> paintable;
int index_in_node { 0 };
enum InternalPosition {