1
Fork 0
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:
Simon Danner 2022-04-11 16:59:03 +02:00 committed by Andreas Kling
parent 55e9192886
commit bd90498332
8 changed files with 62 additions and 0 deletions

View 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;
};
}