mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-09 20:52:54 +00:00
29 lines
805 B
C++
29 lines
805 B
C++
/*
|
|
* Copyright (c) 2024, MacDue <macdue@dueutil.tech>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWeb/Layout/SVGBox.h>
|
|
#include <LibWeb/SVG/SVGClipPathElement.h>
|
|
#include <LibWeb/SVG/SVGElement.h>
|
|
|
|
namespace Web::Layout {
|
|
|
|
class SVGClipBox : public SVGBox {
|
|
GC_CELL(SVGClipBox, SVGBox);
|
|
GC_DECLARE_ALLOCATOR(SVGClipBox);
|
|
|
|
public:
|
|
SVGClipBox(DOM::Document&, SVG::SVGClipPathElement&, GC::Ref<CSS::ComputedProperties>);
|
|
virtual ~SVGClipBox() override = default;
|
|
|
|
SVG::SVGClipPathElement& dom_node() { return as<SVG::SVGClipPathElement>(SVGBox::dom_node()); }
|
|
SVG::SVGClipPathElement const& dom_node() const { return as<SVG::SVGClipPathElement>(SVGBox::dom_node()); }
|
|
|
|
virtual GC::Ptr<Painting::Paintable> create_paintable() const override;
|
|
};
|
|
|
|
}
|