mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +00:00
LibWeb: Make StyleValue::to_string() infallible
This commit is contained in:
parent
ccfe197e5a
commit
7fe97ee6c5
112 changed files with 425 additions and 430 deletions
|
@ -12,19 +12,19 @@
|
|||
|
||||
namespace Web::CSS {
|
||||
|
||||
ErrorOr<String> TransformationStyleValue::to_string() const
|
||||
String TransformationStyleValue::to_string() const
|
||||
{
|
||||
StringBuilder builder;
|
||||
TRY(builder.try_append(CSS::to_string(m_properties.transform_function)));
|
||||
TRY(builder.try_append('('));
|
||||
builder.append(CSS::to_string(m_properties.transform_function));
|
||||
builder.append('(');
|
||||
for (size_t i = 0; i < m_properties.values.size(); ++i) {
|
||||
TRY(builder.try_append(TRY(m_properties.values[i]->to_string())));
|
||||
builder.append(m_properties.values[i]->to_string());
|
||||
if (i != m_properties.values.size() - 1)
|
||||
TRY(builder.try_append(", "sv));
|
||||
builder.append(", "sv);
|
||||
}
|
||||
TRY(builder.try_append(')'));
|
||||
builder.append(')');
|
||||
|
||||
return builder.to_string();
|
||||
return MUST(builder.to_string());
|
||||
}
|
||||
|
||||
bool TransformationStyleValue::Properties::operator==(Properties const& other) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue