mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-19 15:43:20 +00:00
25 lines
604 B
C++
25 lines
604 B
C++
![]() |
/*
|
||
|
* Copyright (c) 2023, Andreas Kling <kling@serenityos.org>
|
||
|
*
|
||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||
|
*/
|
||
|
|
||
|
#include <LibWeb/Layout/Viewport.h>
|
||
|
#include <LibWeb/Painting/ViewportPaintable.h>
|
||
|
|
||
|
namespace Web::Painting {
|
||
|
|
||
|
JS::NonnullGCPtr<ViewportPaintable> ViewportPaintable::create(Layout::Viewport const& layout_viewport)
|
||
|
{
|
||
|
return layout_viewport.heap().allocate_without_realm<ViewportPaintable>(layout_viewport);
|
||
|
}
|
||
|
|
||
|
ViewportPaintable::ViewportPaintable(Layout::Viewport const& layout_viewport)
|
||
|
: PaintableWithLines(layout_viewport)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
ViewportPaintable::~ViewportPaintable() = default;
|
||
|
|
||
|
}
|