1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:48:12 +00:00

LibWeb: Rename SVGPathBox -> SVGGeometryBox

This fits better since it's now used by all SVGGeometryElements.
This commit is contained in:
Sam Atkins 2022-02-11 12:37:22 +00:00 committed by Andreas Kling
parent 326a5a82eb
commit 784c3183f7
7 changed files with 18 additions and 18 deletions

View file

@ -0,0 +1,31 @@
/*
* Copyright (c) 2020, Matthew Olsson <mattco@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibWeb/Layout/SVGGraphicsBox.h>
#include <LibWeb/SVG/SVGGeometryElement.h>
namespace Web::Layout {
class SVGGeometryBox final : public SVGGraphicsBox {
public:
SVGGeometryBox(DOM::Document&, SVG::SVGGeometryElement&, NonnullRefPtr<CSS::StyleProperties>);
virtual ~SVGGeometryBox() override = default;
SVG::SVGGeometryElement& dom_node() { return verify_cast<SVG::SVGGeometryElement>(SVGGraphicsBox::dom_node()); }
SVG::SVGGeometryElement const& dom_node() const { return verify_cast<SVG::SVGGeometryElement>(SVGGraphicsBox::dom_node()); }
virtual void paint(PaintContext& context, PaintPhase phase) override;
private:
virtual bool is_svg_geometry_box() const final { return true; }
};
template<>
inline bool Node::fast_is<SVGGeometryBox>() const { return is_svg_geometry_box(); }
}