From 3659149888bfa366c47064496e7249c866cfcd75 Mon Sep 17 00:00:00 2001 From: MacDue Date: Sat, 28 Oct 2023 14:05:25 +0100 Subject: [PATCH] LibWeb: Fix `stroke-opacity` for stroked paths that use PaintStyles Ref test included :) --- .../svg-stroke-paintstyle-with-opacity-ref.html | 14 ++++++++++++++ .../Ref/svg-stroke-paintstyle-with-opacity.html | 15 +++++++++++++++ .../LibWeb/Painting/RecordingPainter.cpp | 1 + 3 files changed, 30 insertions(+) create mode 100644 Tests/LibWeb/Ref/reference/svg-stroke-paintstyle-with-opacity-ref.html create mode 100644 Tests/LibWeb/Ref/svg-stroke-paintstyle-with-opacity.html diff --git a/Tests/LibWeb/Ref/reference/svg-stroke-paintstyle-with-opacity-ref.html b/Tests/LibWeb/Ref/reference/svg-stroke-paintstyle-with-opacity-ref.html new file mode 100644 index 0000000000..30438a9e9f --- /dev/null +++ b/Tests/LibWeb/Ref/reference/svg-stroke-paintstyle-with-opacity-ref.html @@ -0,0 +1,14 @@ + + + + + + + + + + diff --git a/Tests/LibWeb/Ref/svg-stroke-paintstyle-with-opacity.html b/Tests/LibWeb/Ref/svg-stroke-paintstyle-with-opacity.html new file mode 100644 index 0000000000..4f53aa0234 --- /dev/null +++ b/Tests/LibWeb/Ref/svg-stroke-paintstyle-with-opacity.html @@ -0,0 +1,15 @@ + + + + + + + + + + + diff --git a/Userland/Libraries/LibWeb/Painting/RecordingPainter.cpp b/Userland/Libraries/LibWeb/Painting/RecordingPainter.cpp index 1290918bef..1e517efe8d 100644 --- a/Userland/Libraries/LibWeb/Painting/RecordingPainter.cpp +++ b/Userland/Libraries/LibWeb/Painting/RecordingPainter.cpp @@ -91,6 +91,7 @@ void RecordingPainter::stroke_path(StrokePathUsingPaintStyleParams params) .path = params.path, .paint_style = params.paint_style, .thickness = params.thickness, + .opacity = params.opacity, .aa_translation = aa_translation, }); }