2022-03-10 14:02:25 +01:00
|
|
|
/*
|
2024-10-04 13:19:50 +02:00
|
|
|
* Copyright (c) 2018-2022, Andreas Kling <andreas@ladybird.org>
|
2022-03-10 14:02:25 +01:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <LibWeb/Layout/ImageBox.h>
|
2024-03-27 00:19:41 +00:00
|
|
|
#include <LibWeb/Layout/SVGClipBox.h>
|
2024-03-11 18:26:58 +00:00
|
|
|
#include <LibWeb/Layout/SVGMaskBox.h>
|
2024-03-27 00:19:41 +00:00
|
|
|
#include <LibWeb/Painting/SVGClipPaintable.h>
|
2022-03-10 14:02:25 +01:00
|
|
|
#include <LibWeb/Painting/SVGGraphicsPaintable.h>
|
2023-09-10 14:10:55 +01:00
|
|
|
#include <LibWeb/Painting/StackingContext.h>
|
2023-10-07 20:23:52 +01:00
|
|
|
#include <LibWeb/SVG/SVGSVGElement.h>
|
2022-03-10 14:02:25 +01:00
|
|
|
|
|
|
|
namespace Web::Painting {
|
|
|
|
|
2024-11-15 04:01:23 +13:00
|
|
|
GC::Ref<SVGGraphicsPaintable> SVGGraphicsPaintable::create(Layout::SVGGraphicsBox const& layout_box)
|
2023-04-18 18:56:06 +02:00
|
|
|
{
|
2024-11-14 06:13:46 +13:00
|
|
|
return layout_box.heap().allocate<SVGGraphicsPaintable>(layout_box);
|
2023-04-18 18:56:06 +02:00
|
|
|
}
|
|
|
|
|
2022-03-10 14:02:25 +01:00
|
|
|
SVGGraphicsPaintable::SVGGraphicsPaintable(Layout::SVGGraphicsBox const& layout_box)
|
|
|
|
: SVGPaintable(layout_box)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
Layout::SVGGraphicsBox const& SVGGraphicsPaintable::layout_box() const
|
|
|
|
{
|
2022-03-10 15:50:57 +01:00
|
|
|
return static_cast<Layout::SVGGraphicsBox const&>(layout_node());
|
2022-03-10 14:02:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|