LibWeb: Rename Layout::FrameBox => NavigableContainerViewport

This commit is contained in:
Andreas Kling 2024-11-26 12:00:15 +01:00 committed by Andreas Kling
commit 443a8539e9
Notes: github-actions[bot] 2024-11-26 17:59:43 +00:00
10 changed files with 61 additions and 61 deletions

View file

@ -0,0 +1,33 @@
/*
* Copyright (c) 2020-2024, Andreas Kling <andreas@ladybird.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibWeb/HTML/HTMLIFrameElement.h>
#include <LibWeb/Layout/ReplacedBox.h>
namespace Web::Layout {
class NavigableContainerViewport final : public ReplacedBox {
GC_CELL(NavigableContainerViewport, ReplacedBox);
GC_DECLARE_ALLOCATOR(NavigableContainerViewport);
public:
NavigableContainerViewport(DOM::Document&, DOM::Element&, CSS::StyleProperties);
virtual ~NavigableContainerViewport() override;
virtual void prepare_for_replaced_layout() override;
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()); }
virtual GC::Ptr<Painting::Paintable> create_paintable() const override;
private:
virtual void did_set_content_size() override;
};
}