diff --git a/Libraries/LibWeb/SVG/SVGCircleElement.cpp b/Libraries/LibWeb/SVG/SVGCircleElement.cpp index 381a0a47468..ee85ae3500f 100644 --- a/Libraries/LibWeb/SVG/SVGCircleElement.cpp +++ b/Libraries/LibWeb/SVG/SVGCircleElement.cpp @@ -61,6 +61,11 @@ void SVGCircleElement::apply_presentational_hints(GC::Refcomputed_values().cx().to_px(*node, viewport_size.width())); auto cy = float(node->computed_values().cy().to_px(*node, viewport_size.height())); // Percentages refer to the normalized diagonal of the current SVG viewport diff --git a/Tests/LibWeb/Crash/Layout/svg-circle-element-crash-no-layout-node.html b/Tests/LibWeb/Crash/Layout/svg-circle-element-crash-no-layout-node.html new file mode 100644 index 00000000000..e15d74a66e9 --- /dev/null +++ b/Tests/LibWeb/Crash/Layout/svg-circle-element-crash-no-layout-node.html @@ -0,0 +1,6 @@ + + + + + +