mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:07:34 +00:00
LibWeb: Implement document.elementFromPoint()
This function uses our existing hit testing code to determine the topmost element at the given coordinates relative to the viewport.
This commit is contained in:
parent
c732e03ea0
commit
69df94ec5c
5 changed files with 75 additions and 0 deletions
|
@ -560,6 +560,8 @@ public:
|
|||
void add_form_associated_element_with_form_attribute(HTML::FormAssociatedElement&);
|
||||
void remove_form_associated_element_with_form_attribute(HTML::FormAssociatedElement&);
|
||||
|
||||
Element const* element_from_point(double x, double y);
|
||||
|
||||
protected:
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
virtual void visit_edges(Cell::Visitor&) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue