mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-04 08:36:12 +00:00
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:
parent
d38fac7518
commit
854d48f973
Notes:
github-actions[bot]
2025-07-21 22:54:40 +00:00
Author: https://github.com/tcl3
Commit: 854d48f973
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5516
3 changed files with 8 additions and 8 deletions
|
@ -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);
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue