LibWeb: Add map element areas property

This commit is contained in:
Bastiaan van der Plaat 2024-04-09 18:30:03 +02:00 committed by Andreas Kling
parent 3e507102ea
commit 7fa45c5fdf
Notes: sideshowbarker 2024-07-17 05:01:20 +09:00
5 changed files with 63 additions and 1 deletions

View file

@ -6,6 +6,7 @@
#pragma once
#include <LibWeb/DOM/HTMLCollection.h>
#include <LibWeb/HTML/HTMLElement.h>
namespace Web::HTML {
@ -17,10 +18,15 @@ class HTMLMapElement final : public HTMLElement {
public:
virtual ~HTMLMapElement() override;
JS::NonnullGCPtr<DOM::HTMLCollection> areas();
private:
HTMLMapElement(DOM::Document&, DOM::QualifiedName);
virtual void initialize(JS::Realm&) override;
virtual void visit_edges(Cell::Visitor&) override;
JS::GCPtr<DOM::HTMLCollection> m_areas;
};
}