mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:08:10 +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
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