
Stop worrying about tiny OOMs. Work towards #20449. While going through these, I also changed the function signature in many places where returning ThrowCompletionOr<T> is no longer necessary.
28 lines
621 B
C++
28 lines
621 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);
|
|
}
|
|
|
|
JS::NonnullGCPtr<HTMLDocument> HTMLDocument::create(JS::Realm& realm, AK::URL const& url)
|
|
{
|
|
return realm.heap().allocate<HTMLDocument>(realm, realm, url);
|
|
}
|
|
|
|
}
|