mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +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:
committed by
Andreas Kling
parent
1160d8186b
commit
8889635ba7
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user