2020-06-05 23:36:02 +02:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
|
|
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-06-05 23:36:02 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2020-07-26 15:08:16 +02:00
|
|
|
#include <LibWeb/HTML/HTMLIFrameElement.h>
|
2020-11-22 15:53:01 +01:00
|
|
|
#include <LibWeb/Layout/ReplacedBox.h>
|
2020-06-05 23:36:02 +02:00
|
|
|
|
2020-11-22 15:53:01 +01:00
|
|
|
namespace Web::Layout {
|
2020-06-05 23:36:02 +02:00
|
|
|
|
2020-11-22 15:53:01 +01:00
|
|
|
class FrameBox final : public ReplacedBox {
|
2020-06-05 23:36:02 +02:00
|
|
|
public:
|
2020-11-22 15:53:01 +01:00
|
|
|
FrameBox(DOM::Document&, DOM::Element&, NonnullRefPtr<CSS::StyleProperties>);
|
|
|
|
|
virtual ~FrameBox() override;
|
2020-06-05 23:36:02 +02:00
|
|
|
|
2020-11-22 13:38:18 +01:00
|
|
|
virtual void prepare_for_replaced_layout() override;
|
2020-06-05 23:36:02 +02:00
|
|
|
|
2021-06-24 19:53:42 +02:00
|
|
|
const HTML::HTMLIFrameElement& dom_node() const { return verify_cast<HTML::HTMLIFrameElement>(ReplacedBox::dom_node()); }
|
|
|
|
|
HTML::HTMLIFrameElement& dom_node() { return verify_cast<HTML::HTMLIFrameElement>(ReplacedBox::dom_node()); }
|
2020-06-05 23:36:02 +02:00
|
|
|
|
2022-03-10 22:38:08 +01:00
|
|
|
virtual RefPtr<Painting::Paintable> create_paintable() const override;
|
2022-03-10 14:02:25 +01:00
|
|
|
|
2020-06-05 23:36:02 +02:00
|
|
|
private:
|
|
|
|
|
virtual void did_set_rect() override;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|