summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Layout/SVGFormattingContext.cpp
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-02-11 12:37:22 +0000
committerAndreas Kling <kling@serenityos.org>2022-02-11 21:38:27 +0100
commit784c3183f734f45672ec7ebc43d285f81a40e1a0 (patch)
tree6360405e396fa39bbf8a7022edb3af6141d1df57 /Userland/Libraries/LibWeb/Layout/SVGFormattingContext.cpp
parent326a5a82ebef1146def6e04f1930ef8c054a59bf (diff)
downloadserenity-784c3183f734f45672ec7ebc43d285f81a40e1a0.zip
LibWeb: Rename SVGPathBox -> SVGGeometryBox
This fits better since it's now used by all SVGGeometryElements.
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/SVGFormattingContext.cpp')
-rw-r--r--Userland/Libraries/LibWeb/Layout/SVGFormattingContext.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/SVGFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/SVGFormattingContext.cpp
index e70e3b07b4..9f8becb24f 100644
--- a/Userland/Libraries/LibWeb/Layout/SVGFormattingContext.cpp
+++ b/Userland/Libraries/LibWeb/Layout/SVGFormattingContext.cpp
@@ -6,7 +6,7 @@
#include <AK/Format.h>
#include <LibWeb/Layout/SVGFormattingContext.h>
-#include <LibWeb/Layout/SVGPathBox.h>
+#include <LibWeb/Layout/SVGGeometryBox.h>
#include <LibWeb/Layout/SVGSVGBox.h>
namespace Web::Layout {
@@ -29,10 +29,10 @@ void SVGFormattingContext::run(Box& box, LayoutMode)
Gfx::FloatRect total_bounding_box;
box.for_each_in_subtree_of_type<SVGBox>([&](auto& descendant) {
- if (is<SVGPathBox>(descendant)) {
- auto& path_box = static_cast<SVGPathBox&>(descendant);
- auto& path = path_box.dom_node().get_path();
- path_box.set_content_size(path.bounding_box().size());
+ if (is<SVGGeometryBox>(descendant)) {
+ auto& geometry_box = static_cast<SVGGeometryBox&>(descendant);
+ auto& path = geometry_box.dom_node().get_path();
+ geometry_box.set_content_size(path.bounding_box().size());
total_bounding_box = total_bounding_box.united(path.bounding_box());
}