summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/HTMLIFrameElement.h
blob: f9728145e51ca29f2942670e5f1a2c13a9572100 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * Copyright (c) 2020-2021, Andreas Kling <kling@serenityos.org>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <LibWeb/HTML/BrowsingContextContainer.h>

namespace Web::HTML {

class HTMLIFrameElement final : public BrowsingContextContainer {
    WEB_PLATFORM_OBJECT(HTMLIFrameElement, BrowsingContextContainer);

public:
    virtual ~HTMLIFrameElement() override;

    virtual RefPtr<Layout::Node> create_layout_node(NonnullRefPtr<CSS::StyleProperties>) override;

private:
    HTMLIFrameElement(DOM::Document&, DOM::QualifiedName);

    virtual void inserted() override;
    virtual void removed_from(Node*) override;
    virtual void parse_attribute(FlyString const& name, String const& value) override;

    void load_src(String const&);
};

void run_iframe_load_event_steps(HTML::HTMLIFrameElement&);

}

WRAPPER_HACK(HTMLIFrameElement, Web::HTML)