mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 01:59:31 +00:00
LibWeb: Rename Layout::FrameBox => NavigableContainerViewport
This commit is contained in:
parent
eadeec8b8d
commit
443a8539e9
Notes:
github-actions[bot]
2024-11-26 17:59:43 +00:00
Author: https://github.com/awesomekling
Commit: 443a8539e9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2592
10 changed files with 61 additions and 61 deletions
33
Libraries/LibWeb/Layout/NavigableContainerViewport.h
Normal file
33
Libraries/LibWeb/Layout/NavigableContainerViewport.h
Normal 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;
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue