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

@ -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

View file

@ -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&);
};
}