mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 10:48:13 +00:00
LibWeb: Add SVGDefsElement
* Similarly to clipPath, this doesn't need to get rendered, so return no LayoutNode.
This commit is contained in:
parent
55e9192886
commit
bd90498332
8 changed files with 62 additions and 0 deletions
23
Userland/Libraries/LibWeb/SVG/SVGDefsElement.h
Normal file
23
Userland/Libraries/LibWeb/SVG/SVGDefsElement.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Simon Danner <danner.simon@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/SVG/SVGGraphicsElement.h>
|
||||
|
||||
namespace Web::SVG {
|
||||
|
||||
class SVGDefsElement final : public SVGGraphicsElement {
|
||||
public:
|
||||
using WrapperType = Bindings::SVGDefsElementWrapper;
|
||||
|
||||
SVGDefsElement(DOM::Document&, DOM::QualifiedName);
|
||||
virtual ~SVGDefsElement();
|
||||
|
||||
virtual RefPtr<Layout::Node> create_layout_node(NonnullRefPtr<CSS::StyleProperties>) override;
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue