LibWeb: Make signature of CSS::{Percentage,Number}::to_string consistent

By making this consistent with the other numeric data type classes we
can simplify cases where we are dealing with variants containing these
types.
This commit is contained in:
Callum Law 2025-08-06 22:19:09 +12:00 committed by Sam Atkins
commit bc2ca96f50
Notes: github-actions[bot] 2025-08-11 16:11:16 +00:00
3 changed files with 6 additions and 3 deletions

View file

@ -9,7 +9,7 @@
namespace Web::CSS {
String Number::to_string() const
String Number::to_string(SerializationMode) const
{
if (m_type == Type::IntegerWithExplicitSign)
return MUST(String::formatted("{:+}", m_value));