mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-24 09:52:31 +00:00
LibWeb: Apply the paint transformation in SVGGradientElement
In commit 1b82cb43c2
I accidentally
removed the paint transformation altogether. The result was that
zoomed-in SVGs, or SVG elements with a transformation applied could have
their gradient coordinates misplaced significantly.
This was also exposed in the `svg-text-effects` test by way of a slight
visual difference. Add a new test that very clearly exposes the fixed
issue by rotating the gradient coordinates by 45 degrees.
This commit is contained in:
parent
e21b5cab32
commit
e5d71a6c82
Notes:
github-actions[bot]
2024-11-15 22:37:58 +00:00
Author: https://github.com/gmta
Commit: e5d71a6c82
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2357
7 changed files with 25 additions and 1 deletions
|
@ -106,6 +106,7 @@ void SVGPathPaintable::paint(PaintContext& context, PaintPhase phase) const
|
|||
SVG::SVGPaintContext paint_context {
|
||||
.viewport = svg_viewport,
|
||||
.path_bounding_box = computed_path()->bounding_box(),
|
||||
.paint_transform = paint_transform,
|
||||
};
|
||||
|
||||
auto fill_opacity = graphics_element.fill_opacity().value_or(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue