mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 12:27:34 +00:00
LibWeb: Stub out SVGMaskElement
Just enough that we stop creating layout nodes for mask elements, which was making some SVG content look very wrong. :^)
This commit is contained in:
parent
adf70b8a16
commit
9e22f01eba
10 changed files with 99 additions and 0 deletions
26
Userland/Libraries/LibWeb/SVG/SVGMaskElement.h
Normal file
26
Userland/Libraries/LibWeb/SVG/SVGMaskElement.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* Copyright (c) 2023, Andreas Kling <kling@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/SVG/SVGGraphicsElement.h>
|
||||
|
||||
namespace Web::SVG {
|
||||
|
||||
class SVGMaskElement final : public SVGGraphicsElement {
|
||||
WEB_PLATFORM_OBJECT(SVGMaskElement, SVGGraphicsElement);
|
||||
|
||||
public:
|
||||
virtual ~SVGMaskElement() override;
|
||||
|
||||
virtual JS::GCPtr<Layout::Node> create_layout_node(NonnullRefPtr<CSS::StyleProperties>) override;
|
||||
|
||||
private:
|
||||
SVGMaskElement(DOM::Document&, DOM::QualifiedName);
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue