ladybird/Userland/Libraries/LibWeb/HTML/HTMLIFrameElement.h
Andreas Kling 7e1bf4d300 LibWeb: Compute element style in Layout::TreeBuilder
Instead of making each Layout::Node compute style for itself, we now
compute it in TreeBuilder before even calling create_layout_node().

For non-element DOM nodes, we create the style and layout tree node
in TreeBuilder. This allows us to move create_layout_node() from
DOM::Node to DOM::Element.
2022-02-05 22:50:39 +01:00

32 lines
774 B
C++

/*
* 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&, 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&);
}