mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-05 07:39:16 +00:00
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:
parent
3fe3adadc4
commit
bc2ca96f50
Notes:
github-actions[bot]
2025-08-11 16:11:16 +00:00
Author: https://github.com/Calme1709
Commit: bc2ca96f50
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5734
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/Hendiadyoin1
Reviewed-by: https://github.com/gmta
Reviewed-by: https://github.com/tcl3
3 changed files with 6 additions and 3 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue