mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 09:49:21 +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
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <AK/Debug.h>
|
||||
#include <LibWeb/HTML/NavigableContainer.h>
|
||||
#include <LibWeb/Layout/FrameBox.h>
|
||||
#include <LibWeb/Layout/NavigableContainerViewport.h>
|
||||
#include <LibWeb/Layout/Viewport.h>
|
||||
#include <LibWeb/Painting/BorderRadiusCornerClipper.h>
|
||||
#include <LibWeb/Painting/NestedBrowsingContextPaintable.h>
|
||||
|
@ -16,19 +16,19 @@ namespace Web::Painting {
|
|||
|
||||
GC_DEFINE_ALLOCATOR(NestedBrowsingContextPaintable);
|
||||
|
||||
GC::Ref<NestedBrowsingContextPaintable> NestedBrowsingContextPaintable::create(Layout::FrameBox const& layout_box)
|
||||
GC::Ref<NestedBrowsingContextPaintable> NestedBrowsingContextPaintable::create(Layout::NavigableContainerViewport const& layout_box)
|
||||
{
|
||||
return layout_box.heap().allocate<NestedBrowsingContextPaintable>(layout_box);
|
||||
}
|
||||
|
||||
NestedBrowsingContextPaintable::NestedBrowsingContextPaintable(Layout::FrameBox const& layout_box)
|
||||
NestedBrowsingContextPaintable::NestedBrowsingContextPaintable(Layout::NavigableContainerViewport const& layout_box)
|
||||
: PaintableBox(layout_box)
|
||||
{
|
||||
}
|
||||
|
||||
Layout::FrameBox const& NestedBrowsingContextPaintable::layout_box() const
|
||||
Layout::NavigableContainerViewport const& NestedBrowsingContextPaintable::layout_box() const
|
||||
{
|
||||
return static_cast<Layout::FrameBox const&>(layout_node());
|
||||
return static_cast<Layout::NavigableContainerViewport const&>(layout_node());
|
||||
}
|
||||
|
||||
void NestedBrowsingContextPaintable::paint(PaintContext& context, PaintPhase phase) const
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/Layout/FrameBox.h>
|
||||
#include <LibWeb/Layout/NavigableContainerViewport.h>
|
||||
#include <LibWeb/Painting/PaintableBox.h>
|
||||
|
||||
namespace Web::Painting {
|
||||
|
@ -16,14 +16,14 @@ class NestedBrowsingContextPaintable final : public PaintableBox {
|
|||
GC_DECLARE_ALLOCATOR(NestedBrowsingContextPaintable);
|
||||
|
||||
public:
|
||||
static GC::Ref<NestedBrowsingContextPaintable> create(Layout::FrameBox const&);
|
||||
static GC::Ref<NestedBrowsingContextPaintable> create(Layout::NavigableContainerViewport const&);
|
||||
|
||||
virtual void paint(PaintContext&, PaintPhase) const override;
|
||||
|
||||
Layout::FrameBox const& layout_box() const;
|
||||
Layout::NavigableContainerViewport const& layout_box() const;
|
||||
|
||||
private:
|
||||
NestedBrowsingContextPaintable(Layout::FrameBox const&);
|
||||
NestedBrowsingContextPaintable(Layout::NavigableContainerViewport const&);
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue