mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibWeb: Remove unnecessary state saving in SVGPathPaintable::paint()
Nothing in this function needs to save painter state.
This commit is contained in:
parent
0a97de85c9
commit
aea9136239
Notes:
github-actions[bot]
2025-08-01 09:27:21 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: aea9136239
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5669
Reviewed-by: https://github.com/gmta
1 changed files with 0 additions and 2 deletions
|
@ -66,8 +66,6 @@ void SVGPathPaintable::paint(DisplayListRecordingContext& context, PaintPhase ph
|
|||
auto const* svg_node = layout_box().first_ancestor_of_type<Layout::SVGSVGBox>();
|
||||
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<int>().to_type<float>();
|
||||
auto maybe_view_box = svg_node->dom_node().view_box();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue