2020-07-31 23:04:26 -03:00
|
|
|
/*
|
2021-04-28 17:46:44 -03:00
|
|
|
* Copyright (c) 2020, the SerenityOS developers.
|
2020-07-31 23:04:26 -03:00
|
|
|
*
|
2021-04-22 05:24:48 -03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-07-31 23:04:26 -03:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2025-07-19 23:35:33 -03:00
|
|
|
#include <LibWeb/Export.h>
|
2024-11-03 23:02:07 -03:00
|
|
|
#include <LibWeb/HTML/NavigableContainer.h>
|
2020-07-31 23:04:26 -03:00
|
|
|
|
|
|
|
|
namespace Web::HTML {
|
|
|
|
|
|
|
|
|
|
// NOTE: This element is marked as obsolete, but is still listed as required by the specification.
|
2025-07-19 23:35:33 -03:00
|
|
|
class WEB_API HTMLFrameElement final : public NavigableContainer {
|
2024-11-03 23:02:07 -03:00
|
|
|
WEB_PLATFORM_OBJECT(HTMLFrameElement, NavigableContainer);
|
2024-11-14 12:01:23 -03:00
|
|
|
GC_DECLARE_ALLOCATOR(HTMLFrameElement);
|
2022-08-28 08:42:07 -03:00
|
|
|
|
2020-07-31 23:04:26 -03:00
|
|
|
public:
|
2022-08-28 08:42:07 -03:00
|
|
|
virtual ~HTMLFrameElement() override;
|
2020-07-31 23:04:26 -03:00
|
|
|
|
2022-08-28 08:42:07 -03:00
|
|
|
private:
|
2022-02-18 17:00:52 -03:00
|
|
|
HTMLFrameElement(DOM::Document&, DOM::QualifiedName);
|
2023-01-10 08:28:20 -03:00
|
|
|
|
2023-08-07 03:41:28 -03:00
|
|
|
virtual void initialize(JS::Realm&) override;
|
2023-01-10 08:28:20 -03:00
|
|
|
|
2022-11-05 00:58:14 -03:00
|
|
|
// ^DOM::Element
|
2024-11-03 23:02:07 -03:00
|
|
|
virtual void inserted() override;
|
2026-04-16 16:04:54 -03:00
|
|
|
virtual void removed_from(IsSubtreeRoot, Node* old_ancestor, Node& old_root) override;
|
2024-11-14 10:14:16 -03:00
|
|
|
virtual void attribute_changed(FlyString const& name, Optional<String> const& old_value, Optional<String> const& value, Optional<FlyString> const& namespace_) override;
|
2022-11-05 00:58:14 -03:00
|
|
|
virtual i32 default_tab_index_value() const override;
|
2024-12-20 07:32:17 -03:00
|
|
|
virtual void adjust_computed_style(CSS::ComputedProperties&) override;
|
2024-11-03 23:02:07 -03:00
|
|
|
|
2025-05-15 08:28:53 -03:00
|
|
|
void process_the_frame_attributes(InitialInsertion = InitialInsertion::No);
|
2020-07-31 23:04:26 -03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|