LibWeb: Implement document.scrollingElement

This returns a reference to the element that scrolls the document. In
standards mode it is equivalent to `document.documentElement`.
This commit is contained in:
Tim Ledbetter 2024-02-15 23:14:55 +00:00 committed by Tim Flynn
commit c24652bd2e
Notes: sideshowbarker 2024-07-17 01:51:00 +09:00
7 changed files with 44 additions and 0 deletions

View file

@ -568,6 +568,7 @@ public:
Element const* element_from_point(double x, double y);
Vector<JS::NonnullGCPtr<Element>> elements_from_point(double x, double y);
JS::GCPtr<Element const> scrolling_element() const;
void set_needs_to_resolve_paint_only_properties() { m_needs_to_resolve_paint_only_properties = true; }