mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 17:49:40 +00:00
LibWeb: Rename SVGPathBox -> SVGGeometryBox
This fits better since it's now used by all SVGGeometryElements.
This commit is contained in:
parent
326a5a82eb
commit
784c3183f7
Notes:
sideshowbarker
2024-07-17 19:00:54 +09:00
Author: https://github.com/AtkinsSJ
Commit: 784c3183f7
Pull-request: https://github.com/SerenityOS/serenity/pull/12444
Reviewed-by: https://github.com/awesomekling
7 changed files with 18 additions and 18 deletions
|
@ -1,31 +0,0 @@
|
|||
/*
|
||||
* 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 SVGPathBox final : public SVGGraphicsBox {
|
||||
public:
|
||||
SVGPathBox(DOM::Document&, SVG::SVGGeometryElement&, NonnullRefPtr<CSS::StyleProperties>);
|
||||
virtual ~SVGPathBox() 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_path_box() const final { return true; }
|
||||
};
|
||||
|
||||
template<>
|
||||
inline bool Node::fast_is<SVGPathBox>() const { return is_svg_path_box(); }
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue