mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +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:
committed by
Andreas Kling
parent
1c2e7b1e47
commit
ce0f41b9fb
@@ -41,11 +41,11 @@ Angle Angle::percentage_of(Percentage const& percentage) const
|
||||
return Angle { percentage.as_fraction() * m_value, m_type };
|
||||
}
|
||||
|
||||
DeprecatedString Angle::to_deprecated_string() const
|
||||
ErrorOr<String> Angle::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 Angle::to_degrees() const
|
||||
|
||||
Reference in New Issue
Block a user