2020-06-05 23:36:02 +02:00
|
|
|
/*
|
2021-04-03 11:43:08 +02:00
|
|
|
* Copyright (c) 2020-2021, Andreas Kling <kling@serenityos.org>
|
2020-06-05 23:36:02 +02:00
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-06-05 23:36:02 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2021-05-31 13:59:28 +01:00
|
|
|
#include <LibWeb/HTML/BrowsingContextContainer.h>
|
2020-06-05 23:36:02 +02:00
|
|
|
|
2020-07-28 18:20:36 +02:00
|
|
|
namespace Web::HTML {
|
2020-06-05 23:36:02 +02:00
|
|
|
|
2021-05-31 13:59:28 +01:00
|
|
|
class HTMLIFrameElement final : public BrowsingContextContainer {
|
2020-06-05 23:36:02 +02:00
|
|
|
public:
|
2020-07-27 05:04:26 +01:00
|
|
|
using WrapperType = Bindings::HTMLIFrameElementWrapper;
|
|
|
|
|
2021-02-07 11:20:15 +01:00
|
|
|
HTMLIFrameElement(DOM::Document&, QualifiedName);
|
2020-06-05 23:36:02 +02:00
|
|
|
virtual ~HTMLIFrameElement() override;
|
|
|
|
|
2021-01-06 14:27:40 +01:00
|
|
|
virtual RefPtr<Layout::Node> create_layout_node() override;
|
2020-06-05 23:36:02 +02:00
|
|
|
|
|
|
|
private:
|
2021-04-06 17:58:20 +01:00
|
|
|
virtual void inserted() override;
|
2020-12-14 13:41:18 +01:00
|
|
|
virtual void parse_attribute(const FlyString& name, const String& value) override;
|
2020-06-06 15:08:36 +02:00
|
|
|
|
2020-06-05 23:36:02 +02:00
|
|
|
void load_src(const String&);
|
|
|
|
};
|
|
|
|
|
2021-09-26 02:25:02 +02:00
|
|
|
void run_iframe_load_event_steps(HTML::HTMLIFrameElement&);
|
|
|
|
|
2020-06-05 23:36:02 +02:00
|
|
|
}
|