summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/DOM/Document.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/Document.h')
-rw-r--r--Userland/Libraries/LibWeb/DOM/Document.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Document.h b/Userland/Libraries/LibWeb/DOM/Document.h
index be7050b2cc..0f19fefdfd 100644
--- a/Userland/Libraries/LibWeb/DOM/Document.h
+++ b/Userland/Libraries/LibWeb/DOM/Document.h
@@ -55,6 +55,7 @@ enum class QuirksMode {
class Document
: public ParentNode
, public NonElementParentNode<Document>
+ , public HTML::GlobalEventHandlers
, public Bindings::ScriptExecutionContext {
public:
using WrapperType = Bindings::DocumentWrapper;
@@ -233,8 +234,12 @@ public:
private:
explicit Document(const URL&);
+ // ^DOM::Node
virtual RefPtr<Layout::Node> create_layout_node() override;
+ // ^HTML::GlobalEventHandlers
+ virtual EventTarget& global_event_handlers_to_event_target() final { return *this; }
+
void tear_down_layout_tree();
void increment_referencing_node_count()