ladybird/Userland/Libraries/LibWeb/HTML/HTMLDocument.cpp
Shannon Booth 9ce8189f21 Everywhere: Use unqualified AK::URL
Now possible in LibWeb now that there is no longer a Web::URL.
2024-02-25 08:54:31 +01:00

30 lines
649 B
C++

/*
* Copyright (c) 2023, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibWeb/HTML/HTMLDocument.h>
namespace Web::HTML {
JS_DEFINE_ALLOCATOR(HTMLDocument);
HTMLDocument::HTMLDocument(JS::Realm& realm, URL const& url)
: Document(realm, url)
{
}
HTMLDocument::~HTMLDocument() = default;
WebIDL::ExceptionOr<JS::NonnullGCPtr<HTMLDocument>> HTMLDocument::construct_impl(JS::Realm& realm)
{
return HTMLDocument::create(realm);
}
JS::NonnullGCPtr<HTMLDocument> HTMLDocument::create(JS::Realm& realm, URL const& url)
{
return realm.heap().allocate<HTMLDocument>(realm, realm, url);
}
}