2022-03-10 14:02:25 +01:00
|
|
|
/*
|
2024-10-04 13:19:50 +02:00
|
|
|
* Copyright (c) 2022, Andreas Kling <andreas@ladybird.org>
|
2022-03-10 14:02:25 +01:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2024-11-26 12:00:15 +01:00
|
|
|
#include <LibWeb/Layout/NavigableContainerViewport.h>
|
2022-03-10 23:13:37 +01:00
|
|
|
#include <LibWeb/Painting/PaintableBox.h>
|
2022-03-10 14:02:25 +01:00
|
|
|
|
|
|
|
|
namespace Web::Painting {
|
|
|
|
|
|
2024-11-26 12:04:14 +01:00
|
|
|
class NavigableContainerViewportPaintable final : public PaintableBox {
|
|
|
|
|
GC_CELL(NavigableContainerViewportPaintable, PaintableBox);
|
|
|
|
|
GC_DECLARE_ALLOCATOR(NavigableContainerViewportPaintable);
|
2023-01-11 12:51:49 +01:00
|
|
|
|
2022-03-10 14:02:25 +01:00
|
|
|
public:
|
2024-11-26 12:04:14 +01:00
|
|
|
static GC::Ref<NavigableContainerViewportPaintable> create(Layout::NavigableContainerViewport const&);
|
2022-03-10 14:02:25 +01:00
|
|
|
|
|
|
|
|
virtual void paint(PaintContext&, PaintPhase) const override;
|
|
|
|
|
|
2024-11-26 12:00:15 +01:00
|
|
|
Layout::NavigableContainerViewport const& layout_box() const;
|
2022-03-10 14:02:25 +01:00
|
|
|
|
|
|
|
|
private:
|
2024-11-26 12:04:14 +01:00
|
|
|
NavigableContainerViewportPaintable(Layout::NavigableContainerViewport const&);
|
2022-03-10 14:02:25 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|