LibWeb+LibGfx: Remove Path::close_all_subpaths()

As it turns out, SkPath already behaves the way we need for SVG and HTML
canvas elements. Less work for us, yay! This removes a 5% item from the
profile when scrolling on https://imdb.com/

Note that there's a tiny screenshot test expectation change due to
minor antialiasing differences when we no longer do our redundant
subpath modifications.
This commit is contained in:
Andreas Kling 2025-09-24 13:07:37 +02:00 committed by Andreas Kling
parent 989f6ddb42
commit 321809320b
Notes: github-actions[bot] 2025-09-25 19:44:05 +00:00
10 changed files with 8 additions and 79 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

Before After
Before After

View file

@ -1,6 +1,6 @@
<!DOCTYPE html>
<link rel="match" href="../expected/canvas-path-rect-ref.html" />
<meta name="fuzzy" content="maxDifference=0-1;totalPixels=0-148">
<meta name="fuzzy" content="maxDifference=0-1;totalPixels=0-158">
<style>
* {
margin: 0;