1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:37:43 +00:00

LibWeb: Use the StackingContext tree for hit testing

This makes it possible to click links that are above other content due
to stacking context order (e.g via CSS z-index.)
This commit is contained in:
Andreas Kling 2020-07-01 19:02:28 +02:00
parent f7a900367f
commit 392b055806
8 changed files with 36 additions and 1 deletions

View file

@ -113,4 +113,9 @@ void LayoutDocument::paint(PaintContext& context, PaintPhase phase)
stacking_context()->paint(context, phase);
}
HitTestResult LayoutDocument::hit_test(const Gfx::IntPoint& position) const
{
return stacking_context()->hit_test(position);
}
}