mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-18 23:42:17 +00:00
LibWeb: Remove int usage of NumberStyleValues
Use IntegerStyleValue where we should; remove the ability of NumberStyleValue to hold integers, and add integer interpolation for animations.
This commit is contained in:
parent
1160d8186b
commit
8889635ba7
Notes:
sideshowbarker
2024-07-17 02:38:39 +09:00
Author: https://github.com/AtkinsSJ
Commit: 8889635ba7
Pull-request: https://github.com/SerenityOS/serenity/pull/19208
5 changed files with 28 additions and 40 deletions
|
@ -13,10 +13,7 @@ namespace Web::CSS {
|
|||
|
||||
ErrorOr<String> NumberStyleValue::to_string() const
|
||||
{
|
||||
return m_value.visit(
|
||||
[](auto value) {
|
||||
return String::formatted("{}", value);
|
||||
});
|
||||
return String::number(m_value);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue