/src/serenity/Userland/Libraries/LibWeb/DOM/XMLDocument.cpp
Line | Count | Source |
1 | | /* |
2 | | * Copyright (c) 2023, Luke Wilde <lukew@serenityos.org> |
3 | | * |
4 | | * SPDX-License-Identifier: BSD-2-Clause |
5 | | */ |
6 | | |
7 | | #include <LibWeb/Bindings/XMLDocumentPrototype.h> |
8 | | #include <LibWeb/DOM/XMLDocument.h> |
9 | | |
10 | | namespace Web::DOM { |
11 | | |
12 | | JS_DEFINE_ALLOCATOR(XMLDocument); |
13 | | |
14 | | JS::NonnullGCPtr<XMLDocument> XMLDocument::create(JS::Realm& realm, URL::URL const& url) |
15 | 0 | { |
16 | 0 | return realm.heap().allocate<XMLDocument>(realm, realm, url); |
17 | 0 | } |
18 | | |
19 | | XMLDocument::XMLDocument(JS::Realm& realm, URL::URL const& url) |
20 | 0 | : Document(realm, url) |
21 | 0 | { |
22 | 0 | } |
23 | | |
24 | | void XMLDocument::initialize(JS::Realm& realm) |
25 | 0 | { |
26 | 0 | Base::initialize(realm); |
27 | 0 | WEB_SET_PROTOTYPE_FOR_INTERFACE(XMLDocument); |
28 | 0 | } |
29 | | |
30 | | } |