mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 09:46:04 -05:00
2692db8699
Note that as of this commit, there aren't any such throwers, and the call site in Heap::allocate will drop exceptions on the floor. This commit only serves to change the declaration of the overrides, make sure they return an empty value, and to propagate OOM errors frm their base initialize invocations.
26 lines
599 B
C++
26 lines
599 B
C++
/*
|
|
* Copyright (c) 2020, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWeb/HTML/HTMLElement.h>
|
|
|
|
namespace Web::HTML {
|
|
|
|
// NOTE: This element is marked as obsolete, but is still listed as required by the specification.
|
|
class HTMLDirectoryElement final : public HTMLElement {
|
|
WEB_PLATFORM_OBJECT(HTMLDirectoryElement, HTMLElement);
|
|
|
|
public:
|
|
virtual ~HTMLDirectoryElement() override;
|
|
|
|
private:
|
|
HTMLDirectoryElement(DOM::Document&, DOM::QualifiedName);
|
|
|
|
virtual JS::ThrowCompletionOr<void> initialize(JS::Realm&) override;
|
|
};
|
|
|
|
}
|