LibWeb: Use correct angle type when serializing hue-rotate filter values

At some point `hue-rotate` was changed to use `AngleOrCalculated`
rather than `Angle`, but `Angle` was still being used in a `visit`,
which otherwise defaulted to zero. This caused all `hue-rotate` angles
to serialize to zero.
This commit is contained in:
Tim Ledbetter 2025-07-19 06:14:50 +01:00 committed by Andreas Kling
commit 854d48f973
Notes: github-actions[bot] 2025-07-21 22:54:40 +00:00
3 changed files with 8 additions and 8 deletions

View file

@ -67,10 +67,10 @@ String FilterValueListStyleValue::to_string(SerializationMode) const
[&](FilterOperation::HueRotate const& hue_rotate) {
builder.append("hue-rotate("sv);
hue_rotate.angle.visit(
[&](Angle const& angle) {
[&](AngleOrCalculated const& angle) {
builder.append(angle.to_string());
},
[&](auto&) {
[&](FilterOperation::HueRotate::Zero const&) {
builder.append("0deg"sv);
});
},