summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/HTMLIFrameElement.h
blob: f977d2fe1f654984fc7995f523dd818b57ce3c38 (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
/*
 * 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 {
public:
    using WrapperType = Bindings::HTMLIFrameElementWrapper;

    HTMLIFrameElement(DOM::Document&, DOM::QualifiedName);
    virtual ~HTMLIFrameElement() override;

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

private:
    virtual void inserted() override;
    virtual void parse_attribute(const FlyString& name, const String& value) override;

    void load_src(const String&);
};

void run_iframe_load_event_steps(HTML::HTMLIFrameElement&);

}