mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 16:18:12 +00:00
LibWeb+WebContent: Use new String class in CSS::StyleValue
Converts uses of DeprecatedString to String in StyleValue, and patches surrounding files that depend on these functions.
This commit is contained in:
parent
1c2e7b1e47
commit
ce0f41b9fb
37 changed files with 335 additions and 330 deletions
|
@ -40,11 +40,11 @@ Frequency Frequency::percentage_of(Percentage const& percentage) const
|
|||
return Frequency { percentage.as_fraction() * m_value, m_type };
|
||||
}
|
||||
|
||||
DeprecatedString Frequency::to_deprecated_string() const
|
||||
ErrorOr<String> Frequency::to_string() const
|
||||
{
|
||||
if (is_calculated())
|
||||
return m_calculated_style->to_deprecated_string();
|
||||
return DeprecatedString::formatted("{}{}", m_value, unit_name());
|
||||
return m_calculated_style->to_string();
|
||||
return String::formatted("{}{}", m_value, unit_name());
|
||||
}
|
||||
|
||||
float Frequency::to_hertz() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue