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