mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-20 08:03:21 +00:00
29 lines
661 B
C++
29 lines
661 B
C++
![]() |
/*
|
||
|
* Copyright (c) 2023, Andreas Kling <kling@serenityos.org>
|
||
|
*
|
||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||
|
*/
|
||
|
|
||
|
#include <LibWeb/HTML/HTMLDocument.h>
|
||
|
|
||
|
namespace Web::HTML {
|
||
|
|
||
|
HTMLDocument::HTMLDocument(JS::Realm& realm, AK::URL const& url)
|
||
|
: Document(realm, url)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
HTMLDocument::~HTMLDocument() = default;
|
||
|
|
||
|
WebIDL::ExceptionOr<JS::NonnullGCPtr<HTMLDocument>> HTMLDocument::construct_impl(JS::Realm& realm)
|
||
|
{
|
||
|
return HTMLDocument::create(realm);
|
||
|
}
|
||
|
|
||
|
WebIDL::ExceptionOr<JS::NonnullGCPtr<HTMLDocument>> HTMLDocument::create(JS::Realm& realm, AK::URL const& url)
|
||
|
{
|
||
|
return MUST_OR_THROW_OOM(realm.heap().allocate<HTMLDocument>(realm, realm, url));
|
||
|
}
|
||
|
|
||
|
}
|