summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/SVG/SVGGElement.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-02-05 13:17:01 +0100
committerAndreas Kling <kling@serenityos.org>2022-02-05 22:50:39 +0100
commit7e1bf4d300b42ea1aa3b4439e113083116bc215b (patch)
tree7418a430e313a38972d03410c5451ee343d797c9 /Userland/Libraries/LibWeb/SVG/SVGGElement.h
parent3451673ac8fc454556a9189152a301f702e69390 (diff)
downloadserenity-7e1bf4d300b42ea1aa3b4439e113083116bc215b.zip
LibWeb: Compute element style in Layout::TreeBuilder
Instead of making each Layout::Node compute style for itself, we now compute it in TreeBuilder before even calling create_layout_node(). For non-element DOM nodes, we create the style and layout tree node in TreeBuilder. This allows us to move create_layout_node() from DOM::Node to DOM::Element.
Diffstat (limited to 'Userland/Libraries/LibWeb/SVG/SVGGElement.h')
-rw-r--r--Userland/Libraries/LibWeb/SVG/SVGGElement.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/SVG/SVGGElement.h b/Userland/Libraries/LibWeb/SVG/SVGGElement.h
index a05a12fc5f..757a491fcf 100644
--- a/Userland/Libraries/LibWeb/SVG/SVGGElement.h
+++ b/Userland/Libraries/LibWeb/SVG/SVGGElement.h
@@ -17,7 +17,7 @@ public:
SVGGElement(DOM::Document&, QualifiedName);
virtual ~SVGGElement() override = default;
- virtual RefPtr<Layout::Node> create_layout_node() override;
+ virtual RefPtr<Layout::Node> create_layout_node(NonnullRefPtr<CSS::StyleProperties>) override;
};
}