mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:17:35 +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:
parent
f7a900367f
commit
392b055806
8 changed files with 36 additions and 1 deletions
|
@ -41,9 +41,10 @@ public:
|
|||
virtual void layout(LayoutMode = LayoutMode::Default) override;
|
||||
|
||||
void paint_all_phases(PaintContext&);
|
||||
|
||||
virtual void paint(PaintContext&, PaintPhase) override;
|
||||
|
||||
virtual HitTestResult hit_test(const Gfx::IntPoint&) const override;
|
||||
|
||||
const LayoutRange& selection() const { return m_selection; }
|
||||
LayoutRange& selection() { return m_selection; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue