ladybird/Userland/Libraries/LibWeb/Layout/SVGClipBox.cpp
2024-04-09 09:13:06 +02:00

25 lines
601 B
C++

/*
* Copyright (c) 2024, MacDue <macdue@dueutil.tech>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibWeb/Layout/SVGClipBox.h>
#include <LibWeb/Painting/SVGClipPaintable.h>
#include <LibWeb/Painting/StackingContext.h>
namespace Web::Layout {
JS_DEFINE_ALLOCATOR(SVGClipBox);
SVGClipBox::SVGClipBox(DOM::Document& document, SVG::SVGClipPathElement& element, NonnullRefPtr<CSS::StyleProperties> properties)
: SVGBox(document, element, properties)
{
}
JS::GCPtr<Painting::Paintable> SVGClipBox::create_paintable() const
{
return Painting::SVGClipPaintable::create(*this);
}
}