From aea91362394c1313b8e359deb3ae298e24b39a39 Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Fri, 1 Aug 2025 04:55:44 +0200 Subject: [PATCH] LibWeb: Remove unnecessary state saving in `SVGPathPaintable::paint()` Nothing in this function needs to save painter state. --- Libraries/LibWeb/Painting/SVGPathPaintable.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Libraries/LibWeb/Painting/SVGPathPaintable.cpp b/Libraries/LibWeb/Painting/SVGPathPaintable.cpp index c5dfaae17cf..8ac3448fe7b 100644 --- a/Libraries/LibWeb/Painting/SVGPathPaintable.cpp +++ b/Libraries/LibWeb/Painting/SVGPathPaintable.cpp @@ -66,8 +66,6 @@ void SVGPathPaintable::paint(DisplayListRecordingContext& context, PaintPhase ph auto const* svg_node = layout_box().first_ancestor_of_type(); auto svg_element_rect = svg_node->paintable_box()->absolute_rect(); - DisplayListRecorderStateSaver save_painter { context.display_list_recorder() }; - auto offset = context.rounded_device_point(svg_element_rect.location()).to_type().to_type(); auto maybe_view_box = svg_node->dom_node().view_box();