mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-05 15:49:15 +00:00
LibWeb: Use correct SerializationMode when serializing CalculatedOr
This commit is contained in:
parent
a5cbcaf698
commit
011ab5f714
Notes:
github-actions[bot]
2025-08-06 16:46:34 +00:00
Author: https://github.com/Calme1709
Commit: 011ab5f714
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5699
Reviewed-by: https://github.com/AtkinsSJ ✅
11 changed files with 41 additions and 41 deletions
|
@ -345,7 +345,7 @@ String EasingStyleValue::CubicBezier::to_string(SerializationMode mode) const
|
|||
y2_value = y2_value.resolved({}).value_or(0.0);
|
||||
}
|
||||
builder.appendff("cubic-bezier({}, {}, {}, {})",
|
||||
x1_value.to_string(), y1_value.to_string(), x2_value.to_string(), y2_value.to_string());
|
||||
x1_value.to_string(mode), y1_value.to_string(mode), x2_value.to_string(mode), y2_value.to_string(mode));
|
||||
}
|
||||
return MUST(builder.to_string());
|
||||
}
|
||||
|
@ -429,9 +429,9 @@ String EasingStyleValue::Steps::to_string(SerializationMode mode) const
|
|||
intervals = max(resolved_value, this->position == Steps::Position::JumpNone ? 2 : 1);
|
||||
}
|
||||
if (position.has_value()) {
|
||||
builder.appendff("steps({}, {})", intervals.to_string(), position.value());
|
||||
builder.appendff("steps({}, {})", intervals.to_string(mode), position.value());
|
||||
} else {
|
||||
builder.appendff("steps({})", intervals.to_string());
|
||||
builder.appendff("steps({})", intervals.to_string(mode));
|
||||
}
|
||||
}
|
||||
return MUST(builder.to_string());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue