2022-04-10 19:05:12 +02:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <LibWeb/SVG/SVGElement.h>
|
|
|
|
|
|
|
|
|
|
namespace Web::SVG {
|
|
|
|
|
|
|
|
|
|
class SVGClipPathElement final : public SVGElement {
|
2022-08-28 13:42:07 +02:00
|
|
|
WEB_PLATFORM_OBJECT(SVGClipPathElement, SVGElement);
|
2022-04-10 19:05:12 +02:00
|
|
|
|
2022-08-28 13:42:07 +02:00
|
|
|
public:
|
2022-04-10 19:05:12 +02:00
|
|
|
virtual ~SVGClipPathElement();
|
|
|
|
|
|
2022-10-17 14:41:50 +02:00
|
|
|
virtual JS::GCPtr<Layout::Node> create_layout_node(NonnullRefPtr<CSS::StyleProperties>) override;
|
2022-08-28 13:42:07 +02:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
SVGClipPathElement(DOM::Document&, DOM::QualifiedName);
|
2023-01-10 06:28:20 -05:00
|
|
|
|
2023-01-28 12:33:35 -05:00
|
|
|
virtual JS::ThrowCompletionOr<void> initialize(JS::Realm&) override;
|
2022-04-10 19:05:12 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|