LibWeb: Add a whole bunch of HTML DOM bindings

Note that these aren't full implementations of the bindings. This
mostly implements the low hanging fruit (namely, basic reflections)

There are some attributes that should be USVString instead of
DOMString. However, USVString is a slightly different definition
of DOMString, so it should suffice for now.
This commit is contained in:
Luke 2020-07-27 05:04:26 +01:00 committed by Andreas Kling
parent db1b67e88a
commit a2b40de0cc
Notes: sideshowbarker 2024-07-19 04:33:26 +09:00
44 changed files with 327 additions and 29 deletions

View file

@ -32,6 +32,8 @@ namespace Web {
class HTMLIFrameElement final : public HTMLElement {
public:
using WrapperType = Bindings::HTMLIFrameElementWrapper;
HTMLIFrameElement(DOM::Document&, const FlyString& local_name);
virtual ~HTMLIFrameElement() override;
@ -40,7 +42,7 @@ public:
Frame* hosted_frame() { return m_hosted_frame; }
const Frame* hosted_frame() const { return m_hosted_frame; }
const DOM::Document* hosted_document() const;
const DOM::Document* content_document() const;
private:
virtual void document_did_attach_to_frame(Frame&) override;