mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 04:37:55 +00:00
LibJS: Make Cell::initialize() return void
Stop worrying about tiny OOMs. Work towards #20405
This commit is contained in:
@@ -18,12 +18,10 @@ HTMLPreElement::HTMLPreElement(DOM::Document& document, DOM::QualifiedName quali
|
||||
|
||||
HTMLPreElement::~HTMLPreElement() = default;
|
||||
|
||||
JS::ThrowCompletionOr<void> HTMLPreElement::initialize(JS::Realm& realm)
|
||||
void HTMLPreElement::initialize(JS::Realm& realm)
|
||||
{
|
||||
MUST_OR_THROW_OOM(Base::initialize(realm));
|
||||
Base::initialize(realm);
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::HTMLPreElementPrototype>(realm, "HTMLPreElement"));
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
void HTMLPreElement::apply_presentational_hints(CSS::StyleProperties& style) const
|
||||
|
||||
Reference in New Issue
Block a user